Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
726 additions
and
199 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
embedding/embedlite/embedhelpers/EmbedLiteViewChildIface.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.