Skip to content

Commit

Permalink
Fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Jun 9, 2014
1 parent f0127eb commit bdcea94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions embedding/embedlite/EmbedLiteApp.cpp
Expand Up @@ -55,7 +55,6 @@ EmbedLiteApp::EmbedLiteApp()
, mRenderType(RENDER_AUTO)
, mProfilePath(strdup("mozembed"))
, mIsAsyncLoop(false)
, mIsCompositeInMainThread(true)
{
LOGT();
sSingleton = this;
Expand Down Expand Up @@ -456,9 +455,6 @@ EmbedLiteApp::Initialized()
if (mListener) {
mListener->Initialized();
}
if (mIsCompositeInMainThread) {
mozilla::layers::CompositorParent::StartUpWithExistingThread(MessageLoop::current(), PlatformThread::CurrentId());
}
}

} // namespace embedlite
Expand Down
3 changes: 1 addition & 2 deletions embedding/embedlite/EmbedLiteApp.h
Expand Up @@ -88,7 +88,7 @@ class EmbedLiteApp
virtual void Stop();

// if true then compositor will be started in separate own thread, and view->CompositorCreated notification will be called in non-main thread
virtual void SetCompositorInSeparateThread(bool aOwnThread) { mIsCompositeInMainThread = !aOwnThread; }
virtual void SetCompositorInSeparateThread(bool aOwnThread) { } // Deprecated

// Create custom Event Message pump, alloc new object which must be destroyed in EmbedLiteAppListener::Destroyed, or later
virtual EmbedLiteMessagePump* CreateEmbedLiteMessagePump(EmbedLiteMessagePumpListener* aListener);
Expand Down Expand Up @@ -168,7 +168,6 @@ class EmbedLiteApp
RenderType mRenderType;
char* mProfilePath;
bool mIsAsyncLoop;
bool mIsCompositeInMainThread;
};

} // namespace embedlite
Expand Down
8 changes: 4 additions & 4 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadParent.cpp
Expand Up @@ -560,7 +560,7 @@ EmbedLiteViewThreadParent::ReceiveInputEvent(const InputData& aEvent)
if (aEvent.mInputType == MULTITOUCH_INPUT) {
const MultiTouchInput& multiTouchInput = aEvent.AsMultiTouchInput();
LayoutDeviceIntPoint lpt;
MultiTouchInput translatedEvent(multiTouchInput.mType, multiTouchInput.mTime, multiTouchInput.modifiers);
MultiTouchInput translatedEvent(multiTouchInput.mType, multiTouchInput.mTime, TimeStamp(), multiTouchInput.modifiers);
for (uint32_t i = 0; i < multiTouchInput.mTouches.Length(); ++i) {
const SingleTouchData& data = multiTouchInput.mTouches[i];
mController->GetManager()->TransformCoordinateToGecko(ScreenIntPoint(data.mScreenPoint.x, data.mScreenPoint.y), &lpt);
Expand Down Expand Up @@ -615,7 +615,7 @@ void
EmbedLiteViewThreadParent::MousePress(int x, int y, int mstime, unsigned int buttons, unsigned int modifiers)
{
LOGT("pt[%i,%i], t:%i, bt:%u, mod:%u", x, y, mstime, buttons, modifiers);
MultiTouchInput event(MultiTouchInput::MULTITOUCH_START, mstime, modifiers);
MultiTouchInput event(MultiTouchInput::MULTITOUCH_START, mstime, TimeStamp(), modifiers);
event.mTouches.AppendElement(SingleTouchData(0,
mozilla::ScreenIntPoint(x, y),
mozilla::ScreenSize(1, 1),
Expand All @@ -631,7 +631,7 @@ void
EmbedLiteViewThreadParent::MouseRelease(int x, int y, int mstime, unsigned int buttons, unsigned int modifiers)
{
LOGT("pt[%i,%i], t:%i, bt:%u, mod:%u", x, y, mstime, buttons, modifiers);
MultiTouchInput event(MultiTouchInput::MULTITOUCH_END, mstime, modifiers);
MultiTouchInput event(MultiTouchInput::MULTITOUCH_END, mstime, TimeStamp(), modifiers);
event.mTouches.AppendElement(SingleTouchData(0,
mozilla::ScreenIntPoint(x, y),
mozilla::ScreenSize(1, 1),
Expand All @@ -647,7 +647,7 @@ void
EmbedLiteViewThreadParent::MouseMove(int x, int y, int mstime, unsigned int buttons, unsigned int modifiers)
{
LOGT("pt[%i,%i], t:%i, bt:%u, mod:%u", x, y, mstime, buttons, modifiers);
MultiTouchInput event(MultiTouchInput::MULTITOUCH_MOVE, mstime, modifiers);
MultiTouchInput event(MultiTouchInput::MULTITOUCH_MOVE, mstime, TimeStamp(), modifiers);
event.mTouches.AppendElement(SingleTouchData(0,
mozilla::ScreenIntPoint(x, y),
mozilla::ScreenSize(1, 1),
Expand Down
3 changes: 2 additions & 1 deletion embedding/embedlite/utils/WindowCreator.cpp
Expand Up @@ -33,6 +33,7 @@ WindowCreator::CreateChromeWindow2(nsIWebBrowserChrome* aParent,
uint32_t aChromeFlags,
uint32_t aContextFlags,
nsIURI* aURI,
nsITabParent* aOpeningTab,
bool* aCancel,
nsIWebBrowserChrome* *_retval)
{
Expand Down Expand Up @@ -93,5 +94,5 @@ WindowCreator::CreateChromeWindow(nsIWebBrowserChrome* aParent,
{
LOGNI();
bool cancel;
return CreateChromeWindow2(aParent, aChromeFlags, 0, 0, &cancel, _retval);
return CreateChromeWindow2(aParent, aChromeFlags, 0, nullptr, nullptr, &cancel, _retval);
}

0 comments on commit bdcea94

Please sign in to comment.