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

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

Issue 6685082: Refactor Textfield and AutocompleteEditViewViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Support AltGr. Created 9 years, 9 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
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
« views/controls/textfield/textfield.h ('K') | « views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698