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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user