Index: chrome/browser/ui/views/find_bar_view.h |
diff --git a/chrome/browser/ui/views/find_bar_view.h b/chrome/browser/ui/views/find_bar_view.h |
index 564d298ccea77dbbf724edd32170a1d9061a6cc2..5c22f5c1ba56596c4eca341c244918c5fa62a399 100644 |
--- a/chrome/browser/ui/views/find_bar_view.h |
+++ b/chrome/browser/ui/views/find_bar_view.h |
@@ -76,11 +76,11 @@ class FindBarView : public DropdownBarView, |
const ui::Event& event) OVERRIDE; |
// views::TextfieldController: |
- virtual void ContentsChanged(views::Textfield* sender, |
- const string16& new_contents) OVERRIDE; |
virtual bool HandleKeyEvent(views::Textfield* sender, |
const ui::KeyEvent& key_event) OVERRIDE; |
+ virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; |
virtual void OnAfterCutOrCopy() OVERRIDE; |
+ virtual void OnAfterPaste() OVERRIDE; |
private: |
// Update the appearance for the match count label. |
@@ -133,6 +133,10 @@ class FindBarView : public DropdownBarView, |
// between us and the WebContentsView. |
FindBarHost* find_bar_host() const; |
+ // Used to detect if the input text, not including the IME composition text, |
+ // has changed or not. |
+ string16 last_searched_text_; |
+ |
// The controls in the window. |
SearchTextfieldView* find_text_; |
views::Label* match_count_text_; |