| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void UpdateForResult(const FindNotificationDetails& result, | 63 void UpdateForResult(const FindNotificationDetails& result, |
| 64 const base::string16& find_text); | 64 const base::string16& find_text); |
| 65 | 65 |
| 66 // Clears the current Match Count value in the Find text box. | 66 // Clears the current Match Count value in the Find text box. |
| 67 void ClearMatchCount(); | 67 void ClearMatchCount(); |
| 68 | 68 |
| 69 // Claims focus for the text field and selects its contents. | 69 // Claims focus for the text field and selects its contents. |
| 70 void SetFocusAndSelection(bool select_all) override; | 70 void SetFocusAndSelection(bool select_all) override; |
| 71 | 71 |
| 72 // DropdownBarView: | 72 // DropdownBarView: |
| 73 void OnPaintBackground(gfx::Canvas* canvas) override; | |
| 74 void Layout() override; | 73 void Layout() override; |
| 75 gfx::Size GetPreferredSize() const override; | 74 gfx::Size GetPreferredSize() const override; |
| 76 | 75 |
| 77 // views::VectorIconButtonDelegate: | 76 // views::VectorIconButtonDelegate: |
| 78 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 77 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 79 SkColor GetVectorIconBaseColor() const override; | 78 SkColor GetVectorIconBaseColor() const override; |
| 80 | 79 |
| 81 // views::TextfieldController: | 80 // views::TextfieldController: |
| 82 bool HandleKeyEvent(views::Textfield* sender, | 81 bool HandleKeyEvent(views::Textfield* sender, |
| 83 const ui::KeyEvent& key_event) override; | 82 const ui::KeyEvent& key_event) override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 views::VectorIconButton* find_next_button_; | 118 views::VectorIconButton* find_next_button_; |
| 120 views::VectorIconButton* close_button_; | 119 views::VectorIconButton* close_button_; |
| 121 | 120 |
| 122 // The preferred height of the find bar. | 121 // The preferred height of the find bar. |
| 123 int preferred_height_; | 122 int preferred_height_; |
| 124 | 123 |
| 125 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 124 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 127 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| OLD | NEW |