Chromium Code Reviews| 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) {} |