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

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: Added unit tests. 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 115dd0d637046b44aa49c42e832fc5e82489cc95..370d89c5a981afec172fe5c54d4fcb22e92ad7f7 100644
--- a/ui/touch_selection/touch_selection_controller.h
+++ b/ui/touch_selection/touch_selection_controller.h
@@ -55,11 +55,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.
@@ -113,6 +113,7 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
void ShowInsertionHandleAutomatically();
void ShowSelectionHandlesAutomatically();
+ bool WillHandleTapOrLongPress(const gfx::PointF& location);
void OnInsertionChanged();
void OnSelectionChanged();

Powered by Google App Engine
This is Rietveld 408576698