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

Unified Diff: ui/views/controls/textfield/textfield_controller.h

Issue 2952763002: SearchBoxView now enables/disables cursor based on user interaction. (Closed)
Patch Set: SearchBoxView now enables/disables cursor based on user interaction. Created 3 years, 6 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/views/controls/textfield/textfield_controller.h
diff --git a/ui/views/controls/textfield/textfield_controller.h b/ui/views/controls/textfield/textfield_controller.h
index 7dcffb9648ada99292c4cdb40132528b05cf877a..43106ac52fcb9d421eb9e3a851857159be8107eb 100644
--- a/ui/views/controls/textfield/textfield_controller.h
+++ b/ui/views/controls/textfield/textfield_controller.h
@@ -43,6 +43,10 @@ class VIEWS_EXPORT TextfieldController {
virtual bool HandleMouseEvent(Textfield* sender,
const ui::MouseEvent& mouse_event);
+ // This method is called to notify that a gesture event has occured in the
+ // textfield. Currently, only tap events are sent here.
+ virtual void NotifyOfGestureEvent();
+
// Called before performing a user action that may change the textfield.
// It's currently only supported by Views implementation.
virtual void OnBeforeUserAction(Textfield* sender) {}

Powered by Google App Engine
This is Rietveld 408576698