mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1349750 - Have AsyncPanZoomController expose an IsScrollInfoLayer() method. r=kats
MozReview-Commit-ID: 5TEIcv9svk --HG-- extra : rebase_source : edd32f6d2988c38df4cdf470fadf155136baed80
This commit is contained in:
parent
59c181ae2d
commit
107be6aac9
@ -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;
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user