Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic implementation for ViewProcess, not real, just view proto…
…col activation
- Loading branch information
Showing
16 changed files
with
957 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
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
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
276 changes: 276 additions & 0 deletions
276
embedding/embedlite/embedprocess/EmbedLiteViewProcessChild.cpp
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,276 @@ | ||
#include "EmbedLiteViewProcessChild.h" | ||
|
||
#include "EmbedLog.h" | ||
|
||
namespace mozilla { | ||
namespace embedlite { | ||
|
||
MOZ_IMPLICIT EmbedLiteViewProcessChild::EmbedLiteViewProcessChild(const uint32_t& id, const uint32_t& parentId) | ||
{ | ||
LOGT(); | ||
MOZ_COUNT_CTOR(EmbedLiteViewProcessChild); | ||
mInitWindowTask = NewRunnableMethod(this, | ||
&EmbedLiteViewProcessChild::InitGeckoWindow, parentId); | ||
MessageLoop::current()->PostTask(FROM_HERE, mInitWindowTask); | ||
} | ||
|
||
MOZ_IMPLICIT EmbedLiteViewProcessChild::~EmbedLiteViewProcessChild() | ||
{ | ||
LOGT(); | ||
MOZ_COUNT_DTOR(EmbedLiteViewProcessChild); | ||
} | ||
|
||
void | ||
EmbedLiteViewProcessChild::InitGeckoWindow(const uint32_t& parentId) | ||
{ | ||
LOGT("parentID: %u", parentId); | ||
if (mInitWindowTask) { | ||
mInitWindowTask->Cancel(); | ||
} | ||
mInitWindowTask = nullptr; | ||
|
||
// TODO initialize Gecko browser | ||
|
||
unused << SendInitialized(); | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvLoadURL(const nsString& url) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvGoBack() | ||
{ LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvGoForward() | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvStopLoad() | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvReload(const bool& hardReload) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvLoadFrameScript(const nsString& uri) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvSetViewSize(const gfxSize& aSize) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvSetGLViewSize(const gfxSize& aSize) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvSetIsActive(const bool& aIsActive) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvSetIsFocused(const bool& aIsFocused) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvSuspendTimeouts() | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvResumeTimeouts() | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvAsyncScrollDOMEvent( | ||
const gfxRect& contentRect, | ||
const gfxSize& scrollSize) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvUpdateFrame(const FrameMetrics& frame) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvHandleDoubleTap(const nsIntPoint& point) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvHandleSingleTap(const nsIntPoint& point) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvHandleLongTap( | ||
const nsIntPoint& point, | ||
const ScrollableLayerGuid& aGuid, | ||
const uint64_t& aInputBlockId) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvAcknowledgeScrollUpdate( | ||
const ViewID& aScrollId, | ||
const uint32_t& aScrollGeneration) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvHandleTextEvent( | ||
const nsString& commit, | ||
const nsString& preEdit) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvHandleKeyPressEvent( | ||
const int& domKeyCode, | ||
const int& gmodifiers, | ||
const int& charCode) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvHandleKeyReleaseEvent( | ||
const int& domKeyCode, | ||
const int& gmodifiers, | ||
const int& charCode) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvMouseEvent( | ||
const nsString& aType, | ||
const float& aX, | ||
const float& aY, | ||
const int32_t& aButton, | ||
const int32_t& aClickCount, | ||
const int32_t& aModifiers, | ||
const bool& aIgnoreRootScrollFrame) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvInputDataTouchEvent( | ||
const ScrollableLayerGuid& aGuid, | ||
const MultiTouchInput& event, | ||
const uint64_t& aInputBlockId) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvInputDataTouchMoveEvent( | ||
const ScrollableLayerGuid& aGuid, | ||
const MultiTouchInput& event, | ||
const uint64_t& aInputBlockId) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvAddMessageListener(const nsCString& name) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvRemoveMessageListener(const nsCString& name) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvAddMessageListeners(const nsTArray<nsString>& messageNames) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvRemoveMessageListeners(const nsTArray<nsString>& messageNames) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvDestroy() | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
bool | ||
EmbedLiteViewProcessChild::RecvAsyncMessage(const nsString& aMessage, | ||
const nsString& aData) | ||
{ | ||
LOGT(); | ||
return false; | ||
} | ||
|
||
} // namespace embedlite | ||
} // namespace mozilla |
Oops, something went wrong.