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

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

Issue 501503003: Avoid an extra GestureDetector instance for double-tap drag zooming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix spelling Created 6 years, 4 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/gesture_provider.h
diff --git a/ui/events/gesture_detection/gesture_provider.h b/ui/events/gesture_detection/gesture_provider.h
index 4a54e59d64cd158da269b071bddc03a6224f343f..63bb90d915dc33fa3eea5eaa19f986ffae7988c3 100644
--- a/ui/events/gesture_detection/gesture_provider.h
+++ b/ui/events/gesture_detection/gesture_provider.h
@@ -91,49 +91,21 @@ class GESTURE_DETECTION_EXPORT GestureProvider {
}
private:
- void InitGestureDetectors(const Config& config);
-
bool CanHandle(const MotionEvent& event) const;
-
- void Fling(const MotionEvent& e, float velocity_x, float velocity_y);
- void Send(GestureEventData gesture);
- bool SendLongTapIfNecessary(const MotionEvent& event);
- void EndTouchScrollIfNecessary(const MotionEvent& event,
- bool send_scroll_end_event);
void OnTouchEventHandlingBegin(const MotionEvent& event);
void OnTouchEventHandlingEnd(const MotionEvent& event);
void UpdateDoubleTapDetectionSupport();
- GestureProviderClient* const client_;
-
class GestureListenerImpl;
- friend class GestureListenerImpl;
scoped_ptr<GestureListenerImpl> gesture_listener_;
- class ScaleGestureListenerImpl;
- friend class ScaleGestureListenerImpl;
- scoped_ptr<ScaleGestureListenerImpl> scale_gesture_listener_;
-
scoped_ptr<MotionEvent> current_down_event_;
- // Whether the respective {SCROLL,PINCH}_BEGIN gestures have been terminated
- // with a {SCROLL,PINCH}_END.
- bool touch_scroll_in_progress_;
- bool pinch_in_progress_;
-
// Whether double-tap gesture detection is currently supported.
bool double_tap_support_for_page_;
bool double_tap_support_for_platform_;
- // Keeps track of the current GESTURE_LONG_PRESS event. If a context menu is
- // opened after a GESTURE_LONG_PRESS, this is used to insert a
- // GESTURE_TAP_CANCEL for removing any ::active styling.
- base::TimeTicks current_longpress_time_;
-
const bool gesture_begin_end_types_enabled_;
-
- const float min_gesture_bounds_length_;
- const float max_gesture_bounds_length_;
};
} // namespace ui
« no previous file with comments | « ui/events/gesture_detection/gesture_config_helper_aura.cc ('k') | ui/events/gesture_detection/gesture_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698