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

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: Address review feedbacks. 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
« no previous file with comments | « views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698