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

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

Issue 15841009: Delays find-in-page until IME composition is committed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 7 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: ui/views/controls/textfield/textfield_controller.h
diff --git a/ui/views/controls/textfield/textfield_controller.h b/ui/views/controls/textfield/textfield_controller.h
index 9a6c3302dec09f173d6399a015783cb18654b4fd..4e101e5f2b9020d7df2dae2fba1b15a94a949d1a 100644
--- a/ui/views/controls/textfield/textfield_controller.h
+++ b/ui/views/controls/textfield/textfield_controller.h
@@ -29,13 +29,13 @@ class VIEWS_EXPORT TextfieldController {
// user. It won't be called if the text is changed by calling
// Textfield::SetText() or Textfield::AppendText().
virtual void ContentsChanged(Textfield* sender,
- const string16& new_contents) = 0;
+ const string16& new_contents) {}
// This method is called to get notified about keystrokes in the edit.
// Returns true if the message was handled and should not be processed
// further. If it returns false the processing continues.
virtual bool HandleKeyEvent(Textfield* sender,
- const ui::KeyEvent& key_event) = 0;
+ const ui::KeyEvent& key_event);
// This method is called to get notified about mouse events in the edit.
// Returns true if the message was handled and should not be processed
@@ -54,6 +54,9 @@ class VIEWS_EXPORT TextfieldController {
// Called after performing a Cut or Copy operation.
virtual void OnAfterCutOrCopy() {}
+ // Called after performing a Paste operation.
+ virtual void OnAfterPaste() {}
+
// Called after the textfield has written drag data to give the controller a
// chance to modify the drag data.
virtual void OnWriteDragData(ui::OSExchangeData* data) {}
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698