Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: ui/events/gesture_detection/scale_gesture_detector.h

Issue 200623003: Adopt "QuickScale" double-tap drag zoom code in the GestureProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/gesture_detection/scale_gesture_detector.h
diff --git a/ui/events/gesture_detection/scale_gesture_detector.h b/ui/events/gesture_detection/scale_gesture_detector.h
index 9e84ca5e34fa0e1ff93f25d1dbb739aa22d67d4e..bd8086a406388b7f26d4a8a55c092437c1e6aca7 100644
--- a/ui/events/gesture_detection/scale_gesture_detector.h
+++ b/ui/events/gesture_detection/scale_gesture_detector.h
@@ -71,6 +71,7 @@ class ScaleGestureDetector : public GestureDetector::SimpleGestureListener {
void SetQuickScaleEnabled(bool scales);
bool IsQuickScaleEnabled() const;
bool IsInProgress() const;
+ bool InDoubleTapMode() const;
float GetFocusX() const;
float GetFocusY() const;
float GetCurrentSpan() const;
@@ -93,7 +94,6 @@ class ScaleGestureDetector : public GestureDetector::SimpleGestureListener {
// some hardware/driver combos. Smooth out to get kinder, gentler behavior.
void AddTouchHistory(const MotionEvent& ev);
void ClearTouchHistory();
- bool InDoubleTapMode() const;
ScaleGestureListener* const listener_;

Powered by Google App Engine
This is Rietveld 408576698