| 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..f92e712c72a2a41fb3ecfaa53697a024785c5ca4 100644
|
| --- a/ui/views/controls/textfield/textfield_controller.h
|
| +++ b/ui/views/controls/textfield/textfield_controller.h
|
| @@ -14,6 +14,7 @@
|
| namespace ui {
|
| class KeyEvent;
|
| class MouseEvent;
|
| +class GestureEvent;
|
| class SimpleMenuModel;
|
| } // namespace ui
|
|
|
| @@ -31,18 +32,24 @@ 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 get notified about gesture events in the edit.
|
| + // Returns true if the message was handled and should not be processed
|
| + // further. Currently, only tap events are sent here.
|
| + virtual bool HandleGestureEvent(Textfield* sender,
|
| + const ui::GestureEvent& gesture_event);
|
| +
|
| // Called before performing a user action that may change the textfield.
|
| // It's currently only supported by Views implementation.
|
| virtual void OnBeforeUserAction(Textfield* sender) {}
|
|
|