| Index: views/controls/textfield/textfield_controller.h
|
| diff --git a/views/controls/textfield/textfield_controller.h b/views/controls/textfield/textfield_controller.h
|
| index 53fe97cdd4ec37ce78f3d7d059aca7283baeabb2..ee8df1b18b13939ef44164af5e5027357cf876dc 100644
|
| --- a/views/controls/textfield/textfield_controller.h
|
| +++ b/views/controls/textfield/textfield_controller.h
|
| @@ -26,6 +26,17 @@ class TextfieldController {
|
| // further. If it returns false the processing continues.
|
| virtual bool HandleKeyEvent(Textfield* sender,
|
| const KeyEvent& key_event) = 0;
|
| +
|
| + // Called before performing a user action that may change the textfield.
|
| + // It's currently only supported by Views implementation.
|
| + virtual void OnBeforeUserAction(Textfield* sender) {}
|
| +
|
| + // Called after performing a user action that may change the textfield.
|
| + // It's currently only supported by Views implementation.
|
| + virtual void OnAfterUserAction(Textfield* sender) {}
|
| +
|
| + protected:
|
| + virtual ~TextfieldController() {}
|
| };
|
|
|
| } // namespace views
|
|
|