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/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/ui/views/dropdown_bar_view.h" | 10 #include "chrome/browser/ui/views/dropdown_bar_view.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 views::View* child) OVERRIDE; | 73 views::View* child) OVERRIDE; |
74 | 74 |
75 // views::ButtonListener: | 75 // views::ButtonListener: |
76 virtual void ButtonPressed(views::Button* sender, | 76 virtual void ButtonPressed(views::Button* sender, |
77 const views::Event& event) OVERRIDE; | 77 const views::Event& event) OVERRIDE; |
78 | 78 |
79 // views::TextfieldController: | 79 // views::TextfieldController: |
80 virtual void ContentsChanged(views::Textfield* sender, | 80 virtual void ContentsChanged(views::Textfield* sender, |
81 const string16& new_contents) OVERRIDE; | 81 const string16& new_contents) OVERRIDE; |
82 virtual bool HandleKeyEvent(views::Textfield* sender, | 82 virtual bool HandleKeyEvent(views::Textfield* sender, |
83 const views::KeyEvent& key_event) OVERRIDE; | 83 const ui::KeyEvent& key_event) OVERRIDE; |
84 | 84 |
85 private: | 85 private: |
86 // Update the appearance for the match count label. | 86 // Update the appearance for the match count label. |
87 void UpdateMatchCountAppearance(bool no_match); | 87 void UpdateMatchCountAppearance(bool no_match); |
88 | 88 |
89 // Overridden from views::View. | 89 // Overridden from views::View. |
90 virtual void OnThemeChanged() OVERRIDE; | 90 virtual void OnThemeChanged() OVERRIDE; |
91 | 91 |
92 // We use a hidden view to grab mouse clicks and bring focus to the find | 92 // We use a hidden view to grab mouse clicks and bring focus to the find |
93 // text box. This is because although the find text box may look like it | 93 // text box. This is because although the find text box may look like it |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // box to provide the Chrome look to the edge of the text box. | 141 // box to provide the Chrome look to the edge of the text box. |
142 const gfx::ImageSkia* text_box_background_; | 142 const gfx::ImageSkia* text_box_background_; |
143 | 143 |
144 // The rounded edge on the left side of the Find text box. | 144 // The rounded edge on the left side of the Find text box. |
145 const gfx::ImageSkia* text_box_background_left_; | 145 const gfx::ImageSkia* text_box_background_left_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 147 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
148 }; | 148 }; |
149 | 149 |
150 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 150 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
OLD | NEW |