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

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

Issue 2952763002: SearchBoxView now enables/disables cursor based on user interaction. (Closed)
Patch Set: rebased. Created 3 years, 5 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
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/controls/textfield/textfield_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/controls/textfield/textfield_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698