Bug 1105109 - Have the parent process notify APZ of the start and stop of autoscrolling. r=kats

The messages are routed through nsITabParent, nsIWidget, and IAPZCTreeManager
(the latter possibly remoted via PAPZCTreeManager if out-of-process compositing
is used).

MozReview-Commit-ID: 1zXzLa1fqpG
This commit is contained in:
Botond Ballo
2017-07-26 19:33:02 -04:00
parent 877f2e690d
commit 601cc1a4e1
14 changed files with 225 additions and 1 deletions

View File

@@ -1956,6 +1956,24 @@ nsBaseWidget::StartAsyncScrollbarDrag(const AsyncDragMetrics& aDragMetrics)
aDragMetrics));
}
void
nsBaseWidget::StartAsyncAutoscroll(const ScreenPoint& aAnchorLocation,
const ScrollableLayerGuid& aGuid)
{
MOZ_ASSERT(XRE_IsParentProcess() && AsyncPanZoomEnabled());
mAPZC->StartAutoscroll(aGuid, aAnchorLocation);
}
void
nsBaseWidget::StopAsyncAutoscroll(const ScrollableLayerGuid& aGuid)
{
MOZ_ASSERT(XRE_IsParentProcess() && AsyncPanZoomEnabled());
mAPZC->StopAutoscroll(aGuid);
}
already_AddRefed<nsIScreen>
nsBaseWidget::GetWidgetScreen()
{