Chromium Code Reviews| 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) {} |
|
oshima
2011/03/21 21:11:43
Isn't it feasible to make this pure virtual?
oshima
2011/03/22 03:02:28
how about this?
And related question. I think sup
James Su
2011/03/22 04:27:24
Sorry I missed it. I'd like to make these two meth
James Su
2011/03/22 04:27:24
I personally like it, and it's already supported i
oshima
2011/03/22 23:22:23
In fact, many use of this class has empty impl. It
oshima
2011/03/22 23:22:23
What I meant is to enable search with composition
James Su
2011/03/22 23:49:57
FindBar implements ContentsChanged(), it should be
oshima
2011/03/23 18:53:04
This wasn't working for views/gtk. bit I now see y
|
| + |
| + protected: |
| + virtual ~TextfieldController() {} |
| }; |
| } // namespace views |