Bug 1349750 - Have AsyncPanZoomController expose an IsScrollInfoLayer() method. r=kats

MozReview-Commit-ID: 5TEIcv9svk

--HG--
extra : rebase_source : edd32f6d2988c38df4cdf470fadf155136baed80
This commit is contained in:
Botond Ballo 2017-05-05 18:02:05 -04:00
parent 59c181ae2d
commit 107be6aac9
2 changed files with 10 additions and 0 deletions

View File

@ -2954,6 +2954,11 @@ bool AsyncPanZoomController::IsPannable() const {
return mX.CanScroll() || mY.CanScroll();
}
bool AsyncPanZoomController::IsScrollInfoLayer() const {
ReentrantMonitorAutoEnter lock(mMonitor);
return mFrameMetrics.IsScrollInfoLayer();
}
int32_t AsyncPanZoomController::GetLastTouchIdentifier() const {
RefPtr<GestureEventListener> listener = GetGestureEventListener();
return listener ? listener->GetLastTouchIdentifier() : -1;

View File

@ -343,6 +343,11 @@ public:
*/
bool IsPannable() const;
/**
* Returns whether this APZC represents a scroll info layer.
*/
bool IsScrollInfoLayer() const;
/**
* Returns true if the APZC has been flung with a velocity greater than the
* stop-on-tap fling velocity threshold (which is pref-controlled).