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

Side by Side Diff: ui/views/controls/textfield/textfield_controller.h

Issue 2982453002: New AppListView Scroll Behavior. (Closed)
Patch Set: Removed unintended edit. 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 unified diff | Download patch
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 22 matching lines...) Expand all
33 const base::string16& new_contents) {} 33 const base::string16& new_contents) {}
34 34
35 // Called to get notified about keystrokes in the edit. 35 // Called to get notified about keystrokes in the edit.
36 // Returns true if the message was handled and should not be processed 36 // Returns true if the message was handled and should not be processed
37 // further. If it returns false the processing continues. 37 // further. If it returns false the processing continues.
38 virtual bool HandleKeyEvent(Textfield* sender, 38 virtual bool HandleKeyEvent(Textfield* sender,
39 const ui::KeyEvent& key_event); 39 const ui::KeyEvent& key_event);
40 40
41 // Called to get notified about mouse events in the edit. 41 // Called to get notified about mouse events in the edit.
42 // Returns true if the message was handled and should not be processed 42 // Returns true if the message was handled and should not be processed
43 // further. Currently, only mouse down events are sent here. 43 // further. Currently, only mouse down events and mouse wheel events are sent
44 // here.
44 virtual bool HandleMouseEvent(Textfield* sender, 45 virtual bool HandleMouseEvent(Textfield* sender,
45 const ui::MouseEvent& mouse_event); 46 const ui::MouseEvent& mouse_event);
46 47
47 // Called to get notified about gesture events in the edit. 48 // Called to get notified about gesture events in the edit.
48 // Returns true if the message was handled and should not be processed 49 // Returns true if the message was handled and should not be processed
49 // further. Currently, only tap events are sent here. 50 // further. Currently, only tap events are sent here.
50 virtual bool HandleGestureEvent(Textfield* sender, 51 virtual bool HandleGestureEvent(Textfield* sender,
51 const ui::GestureEvent& gesture_event); 52 const ui::GestureEvent& gesture_event);
52 53
53 // Called before performing a user action that may change the textfield. 54 // Called before performing a user action that may change the textfield.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Gives the controller a chance to modify the context menu contents. 87 // Gives the controller a chance to modify the context menu contents.
87 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {} 88 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {}
88 89
89 protected: 90 protected:
90 virtual ~TextfieldController() {} 91 virtual ~TextfieldController() {}
91 }; 92 };
92 93
93 } // namespace views 94 } // namespace views
94 95
95 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ 96 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698