| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Clears the current Match Count value in the Find text box. | 64 // Clears the current Match Count value in the Find text box. |
| 65 void ClearMatchCount(); | 65 void ClearMatchCount(); |
| 66 | 66 |
| 67 // Claims focus for the text field and selects its contents. | 67 // Claims focus for the text field and selects its contents. |
| 68 void SetFocusAndSelection(bool select_all) override; | 68 void SetFocusAndSelection(bool select_all) override; |
| 69 | 69 |
| 70 // views::View: | 70 // views::View: |
| 71 void OnPaint(gfx::Canvas* canvas) override; | 71 void OnPaint(gfx::Canvas* canvas) override; |
| 72 void Layout() override; | 72 void Layout() override; |
| 73 const char* GetClassName() const override; |
| 73 gfx::Size GetPreferredSize() const override; | 74 gfx::Size GetPreferredSize() const override; |
| 74 | 75 |
| 75 // views::ButtonListener: | 76 // views::ButtonListener: |
| 76 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 77 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 77 | 78 |
| 78 // views::TextfieldController: | 79 // views::TextfieldController: |
| 79 bool HandleKeyEvent(views::Textfield* sender, | 80 bool HandleKeyEvent(views::Textfield* sender, |
| 80 const ui::KeyEvent& key_event) override; | 81 const ui::KeyEvent& key_event) override; |
| 81 void OnAfterUserAction(views::Textfield* sender) override; | 82 void OnAfterUserAction(views::Textfield* sender) override; |
| 82 void OnAfterPaste() override; | 83 void OnAfterPaste() override; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 views::ImageButton* find_next_button_; | 129 views::ImageButton* find_next_button_; |
| 129 views::ImageButton* close_button_; | 130 views::ImageButton* close_button_; |
| 130 | 131 |
| 131 // The preferred height of the find bar. | 132 // The preferred height of the find bar. |
| 132 int preferred_height_; | 133 int preferred_height_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 135 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 138 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| OLD | NEW |