| 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 dd5e5d6dedbec385b97acfe312a799139608134b..7f3e89928ab1b2e520e02c97ac67bd28d2954a6f 100644
|
| --- a/chrome/browser/ui/views/find_bar_view.h
|
| +++ b/chrome/browser/ui/views/find_bar_view.h
|
| @@ -110,12 +110,25 @@ class FindBarView : public DropdownBarView,
|
| DISALLOW_COPY_AND_ASSIGN(FocusForwarderView);
|
| };
|
|
|
| + // A wrapper of views::TextField that allows us to select all text when we
|
| + // get focus. Represents the text field where the user enters a search term.
|
| + class SearchTextfieldView : public views::Textfield {
|
| + public:
|
| + SearchTextfieldView();
|
| + virtual ~SearchTextfieldView();
|
| +
|
| + virtual void RequestFocus() OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(SearchTextfieldView);
|
| + };
|
| +
|
| // Returns the OS-specific view for the find bar that acts as an intermediary
|
| // between us and the WebContentsView.
|
| FindBarHost* find_bar_host() const;
|
|
|
| // The controls in the window.
|
| - views::Textfield* find_text_;
|
| + SearchTextfieldView* find_text_;
|
| views::Label* match_count_text_;
|
| FocusForwarderView* focus_forwarder_view_;
|
| views::ImageButton* find_previous_button_;
|
|
|