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

Unified Diff: ui/touch_selection/touch_selection_controller.h

Issue 1102933003: [Contextual Search] Add support for tap on the selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved implementation methods to match declaration order. Used INACTIVE for active_status_ state ch… Created 5 years, 7 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/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 4f6a57832a20fafd5e17ce8fc7c0f37937025563..7ec25d1d442e6d13bbdcb9c7990f4e61120e039d 100644
--- a/ui/touch_selection/touch_selection_controller.h
+++ b/ui/touch_selection/touch_selection_controller.h
@@ -61,11 +61,11 @@ 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.
- void OnTapEvent();
+ bool WillHandleTapEvent(const gfx::PointF& location);
// To be called before forwarding a longpress event. This allows automatically
// showing the selection or insertion handles from subsequent bounds changes.
- void OnLongPressEvent();
+ bool WillHandleLongPressEvent(const gfx::PointF& location);
// Allow showing the selection handles from the most recent selection bounds
// update (if valid), or a future valid bounds update.
@@ -124,6 +124,7 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
void ShowInsertionHandleAutomatically();
void ShowSelectionHandlesAutomatically();
+ bool WillHandleTapOrLongPress(const gfx::PointF& location);
void OnInsertionChanged();
void OnSelectionChanged();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698