OLD | NEW |
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Called when a drop of dragged data happens on the textfield. This method is | 73 // Called when a drop of dragged data happens on the textfield. This method is |
74 // called before regular handling of the drop. If this returns a drag | 74 // called before regular handling of the drop. If this returns a drag |
75 // operation other than |ui::DragDropTypes::DRAG_NONE|, regular handling is | 75 // operation other than |ui::DragDropTypes::DRAG_NONE|, regular handling is |
76 // skipped. | 76 // skipped. |
77 virtual int OnDrop(const ui::OSExchangeData& data); | 77 virtual int OnDrop(const ui::OSExchangeData& data); |
78 | 78 |
79 // Gives the controller a chance to modify the context menu contents. | 79 // Gives the controller a chance to modify the context menu contents. |
80 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {} | 80 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {} |
81 | 81 |
82 protected: | 82 protected: |
| 83 TextfieldController() = default; |
83 virtual ~TextfieldController() {} | 84 virtual ~TextfieldController() {} |
84 }; | 85 }; |
85 | 86 |
86 } // namespace views | 87 } // namespace views |
87 | 88 |
88 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ | 89 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ |
OLD | NEW |