OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_ | |
7 | |
8 #include "ui/views/controls/button/label_button.h" | |
9 | |
10 // A blue button shown at the end of the omnibox that holds either a search or | |
11 // navigation icon based on the current omnibox text. This is something like a | |
12 // cross between a historical browser "Go" button and the Google "search" | |
13 // button. | |
14 class SearchButton : public views::LabelButton { | |
15 public: | |
16 explicit SearchButton(views::ButtonListener* listener); | |
17 ~SearchButton() override; | |
18 | |
19 // Updates the search button icon to a search icon if |is_search| is true, or | |
20 // a navigation icon otherwise. | |
21 void UpdateIcon(bool is_search); | |
22 | |
23 private: | |
24 DISALLOW_COPY_AND_ASSIGN(SearchButton); | |
25 }; | |
26 | |
27 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_ | |
OLD | NEW |