Skip to content

Commit

Permalink
More chagnes to EmbedContentController
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed Apr 8, 2020
1 parent 7f7c116 commit 8f6af3d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
20 changes: 17 additions & 3 deletions embedding/embedlite/embedthread/EmbedContentController.cpp
Expand Up @@ -189,9 +189,7 @@ void EmbedContentController::AcknowledgeScrollUpdate(const FrameMetrics::ViewID&
if (MessageLoop::current() != mUILoop) {
// We have to send this message from the "UI thread" (main
// thread).
mUILoop->PostTask(
FROM_HERE,
NewRunnableMethod(this, &EmbedContentController::AcknowledgeScrollUpdate, aScrollId, aScrollGeneration));
mUILoop->PostTask(NewRunnableMethod<>(this, &EmbedContentController::AcknowledgeScrollUpdate, aScrollId, aScrollGeneration));
return;
}
if (mRenderFrame && !GetListener()->AcknowledgeScrollUpdate((uint32_t)aScrollId, aScrollGeneration)) {
Expand Down Expand Up @@ -245,3 +243,19 @@ void EmbedContentController::NotifyFlushComplete()
LOGT();
mUILoop->PostTask(NewRunnableMethod(this, &EmbedContentController::DoNotifyFlushComplete));
}

void EmbedContentController::NotifyPinchGesture(PinchGestureInput::PinchGestureType aType, const EmbedContentController::ScrollableLayerGuid &aGuid, LayoutDeviceCoord aSpanChange, Modifiers aModifiers)
{
LOGT("NOT YET IMPLEMENTED");
}

bool EmbedContentController::IsRepaintThread()
{
LOGT("NOT YET IMPLEMENTED");
return true;
}

void EmbedContentController::DispatchToRepaintThread(already_AddRefed<Runnable> aTask)
{
LOGT("NOT YET IMPLEMENTED");
}
9 changes: 9 additions & 0 deletions embedding/embedlite/embedthread/EmbedContentController.h
Expand Up @@ -51,6 +51,15 @@ class EmbedContentController : public mozilla::layers::GeckoContentController
int aArg = 0) override;
virtual void NotifyFlushComplete() override;

virtual void NotifyPinchGesture(PinchGestureInput::PinchGestureType aType,
const ScrollableLayerGuid& aGuid,
LayoutDeviceCoord aSpanChange,
Modifiers aModifiers) override;

virtual bool IsRepaintThread() override;

virtual void DispatchToRepaintThread(already_AddRefed<Runnable> aTask) override;

private:
EmbedLiteViewListener *GetListener() const;

Expand Down

0 comments on commit 8f6af3d

Please sign in to comment.