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

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

Issue 2952763002: SearchBoxView now enables/disables cursor based on user interaction. (Closed)
Patch Set: Responded to comments 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..6de09902add7cf4218589fd047fc0978fea73247 100644
--- a/ui/views/controls/textfield/textfield_controller.h
+++ b/ui/views/controls/textfield/textfield_controller.h
@@ -31,18 +31,22 @@ class VIEWS_EXPORT TextfieldController {
virtual void ContentsChanged(Textfield* sender,
const base::string16& new_contents) {}
- // This method is called to get notified about keystrokes in the edit.
+ // Called to get notified about keystrokes in the edit.
// Returns true if the message was handled and should not be processed
// further. If it returns false the processing continues.
virtual bool HandleKeyEvent(Textfield* sender,
const ui::KeyEvent& key_event);
- // This method is called to get notified about mouse events in the edit.
+ // Called to get notified about mouse events in the edit.
// Returns true if the message was handled and should not be processed
// further. Currently, only mouse down events are sent here.
virtual bool HandleMouseEvent(Textfield* sender,
const ui::MouseEvent& mouse_event);
+ // Called to notify that a gesture event has occured in the
+ // textfield. Currently, only tap events are sent here.
+ virtual void NotifyOnGestureEvent();
vadimt 2017/06/22 22:47:41 "OnGesture() {}" Note curlies here.
newcomer 2017/06/23 23:59:37 Refactored as a side effect.
+
// 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