Chromium Code Reviews| 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..99d10f5681301691baa5be048456470b570fb187 100644 |
| --- a/chrome/browser/ui/views/find_bar_view.h |
| +++ b/chrome/browser/ui/views/find_bar_view.h |
| @@ -80,10 +80,15 @@ class FindBarView : public DropdownBarView, |
| 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. |
| + // Starts finding |sender->text()|. If the text is empty, stops finding. |
| + void DoFinding(views::Textfield* sender); |
|
msw
2013/06/04 01:30:23
This function only uses |sender| for its text, sen
Yuki
2013/06/04 03:35:04
Done.
|
| + |
| + // Updates the appearance for the match count label. |
| void UpdateMatchCountAppearance(bool no_match); |
| // views::View: |
| @@ -133,6 +138,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_; |