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

Unified Diff: ui/touch_selection/touch_selection_controller.h

Issue 1358263002: [Android] Support double-tap selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix contextual search Created 5 years, 3 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
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_selection_controller.h
diff --git a/ui/touch_selection/touch_selection_controller.h b/ui/touch_selection/touch_selection_controller.h
index fabce613652dbe4786b6fac648008e51fecd8b1c..72e2ae23fe81f6dc1e08aa5fdc1a107bb7028524 100644
--- a/ui/touch_selection/touch_selection_controller.h
+++ b/ui/touch_selection/touch_selection_controller.h
@@ -82,7 +82,9 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
// To be called before forwarding a tap event. This allows automatically
// showing the insertion handle from subsequent bounds changes.
- bool WillHandleTapEvent(const gfx::PointF& location);
+ // |tap_count| is tap index in a repeated sequence, i.e., 1 for the first
+ // tap, 2 for the second tap, etc...
+ bool WillHandleTapEvent(const gfx::PointF& location, int tap_count);
// To be called before forwarding a longpress event. This allows automatically
// showing the selection or insertion handles from subsequent bounds changes.
@@ -133,7 +135,7 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
private:
friend class TouchSelectionControllerTestApi;
- enum InputEventType { TAP, LONG_PRESS, INPUT_EVENT_TYPE_NONE };
+ enum InputEventType { TAP, REPEATED_TAP, LONG_PRESS, INPUT_EVENT_TYPE_NONE };
// TouchHandleClient implementation.
void OnDragBegin(const TouchSelectionDraggable& draggable,
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698