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/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "chrome/browser/ui/views/dropdown_bar_view.h" | 10 #include "chrome/browser/ui/views/dropdown_bar_view.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Clears the current Match Count value in the Find text box. | 63 // Clears the current Match Count value in the Find text box. |
64 void ClearMatchCount(); | 64 void ClearMatchCount(); |
65 | 65 |
66 // Claims focus for the text field and selects its contents. | 66 // Claims focus for the text field and selects its contents. |
67 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; | 67 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; |
68 | 68 |
69 // views::View: | 69 // views::View: |
70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
71 virtual void Layout() OVERRIDE; | 71 virtual void Layout() OVERRIDE; |
72 virtual gfx::Size GetPreferredSize() OVERRIDE; | 72 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 73 virtual void ViewHierarchyChanged( |
| 74 const ViewHierarchyChangedDetails& details) OVERRIDE; |
73 | 75 |
74 // views::ButtonListener: | 76 // views::ButtonListener: |
75 virtual void ButtonPressed(views::Button* sender, | 77 virtual void ButtonPressed(views::Button* sender, |
76 const ui::Event& event) OVERRIDE; | 78 const ui::Event& event) OVERRIDE; |
77 | 79 |
78 // views::TextfieldController: | 80 // views::TextfieldController: |
79 virtual bool HandleKeyEvent(views::Textfield* sender, | 81 virtual bool HandleKeyEvent(views::Textfield* sender, |
80 const ui::KeyEvent& key_event) OVERRIDE; | 82 const ui::KeyEvent& key_event) OVERRIDE; |
81 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; | 83 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; |
82 virtual void OnAfterPaste() OVERRIDE; | 84 virtual void OnAfterPaste() OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // box to provide the Chrome look to the edge of the text box. | 136 // box to provide the Chrome look to the edge of the text box. |
135 const gfx::ImageSkia* text_box_background_; | 137 const gfx::ImageSkia* text_box_background_; |
136 | 138 |
137 // The rounded edge on the left side of the Find text box. | 139 // The rounded edge on the left side of the Find text box. |
138 const gfx::ImageSkia* text_box_background_left_; | 140 const gfx::ImageSkia* text_box_background_left_; |
139 | 141 |
140 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 142 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
141 }; | 143 }; |
142 | 144 |
143 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 145 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
OLD | NEW |