Skip to content

Commit

Permalink
Implemented basic view creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Dec 6, 2014
1 parent b712677 commit 718aab6
Show file tree
Hide file tree
Showing 11 changed files with 726 additions and 199 deletions.
64 changes: 64 additions & 0 deletions embedding/embedlite/embedhelpers/EmbedLiteViewChildIface.h
@@ -0,0 +1,64 @@

#ifndef __gen_EmbedLiteViewChildIface_h__
#define __gen_EmbedLiteViewChildIface_h__

#include "FrameMetrics.h"

namespace mozilla {
namespace embedlite {

class EmbedLiteViewChildIface
{
public:
/*-------------Widget-------------------*/
virtual bool
SetInputContext(const int32_t& IMEEnabled,
const int32_t& IMEOpen,
const nsString& type,
const nsString& inputmode,
const nsString& actionHint,
const int32_t& cause,
const int32_t& focusChange) = 0;

virtual bool
GetInputContext(int32_t* IMEEnabled,
int32_t* IMEOpen,
intptr_t* NativeIMEContext) = 0;
virtual void ResetInputState() = 0;
virtual gfxSize GetGLViewSize() = 0;

/*-------------TabChild-------------------*/

virtual bool
ZoomToRect(const uint32_t& aPresShellId,
const mozilla::layers::FrameMetrics::ViewID& aViewId,
const CSSRect& aRect) = 0;

virtual bool
UpdateZoomConstraints(const uint32_t& aPresShellId,
const mozilla::layers::FrameMetrics::ViewID& aViewId,
const bool& aIsRoot,
const mozilla::layers::ZoomConstraints& aConstraints) = 0;

virtual bool HasMessageListener(const nsAString& aMessageName) = 0;

virtual bool DoSendAsyncMessage(const char16_t* aMessageName, const char16_t* aMessage) = 0;
virtual bool DoSendSyncMessage(const char16_t* aMessageName,
const char16_t* aMessage,
InfallibleTArray<nsString>* aJSONRetVal) = 0;
virtual bool DoCallRpcMessage(const char16_t* aMessageName,
const char16_t* aMessage,
InfallibleTArray<nsString>* aJSONRetVal) = 0;

/**
* Relay given frame metrics to listeners subscribed via EmbedLiteAppService
*/
virtual void RelayFrameMetrics(const mozilla::layers::FrameMetrics& aFrameMetrics) = 0;

virtual nsIWebNavigation* WebNavigation() = 0;
virtual nsIWidget* WebWidget() = 0;
};

}}

#endif // __gen_EmbedLiteViewChildIface_h__
Expand Up @@ -237,7 +237,7 @@ struct DelayedDeleteContentParentTask : public nsRunnable
void
EmbedLiteAppProcessParent::ActorDestroy(ActorDestroyReason aWhy)
{
LOGT();
LOGT("Reason:%d", aWhy);

ShutDownProcess(true);

Expand Down

0 comments on commit 718aab6

Please sign in to comment.