Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: chrome/browser/ui/views/location_bar/search_button.h

Issue 678093002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_LOCATION_BAR_SEARCH_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_
7 7
8 #include "ui/views/controls/button/label_button.h" 8 #include "ui/views/controls/button/label_button.h"
9 9
10 // A blue button shown at the end of the omnibox that holds either a search or 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 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" 12 // cross between a historical browser "Go" button and the Google "search"
13 // button. 13 // button.
14 class SearchButton : public views::LabelButton { 14 class SearchButton : public views::LabelButton {
15 public: 15 public:
16 explicit SearchButton(views::ButtonListener* listener); 16 explicit SearchButton(views::ButtonListener* listener);
17 virtual ~SearchButton(); 17 ~SearchButton() override;
18 18
19 // Updates the search button icon to a search icon if |is_search| is true, or 19 // Updates the search button icon to a search icon if |is_search| is true, or
20 // a navigation icon otherwise. 20 // a navigation icon otherwise.
21 void UpdateIcon(bool is_search); 21 void UpdateIcon(bool is_search);
22 22
23 private: 23 private:
24 DISALLOW_COPY_AND_ASSIGN(SearchButton); 24 DISALLOW_COPY_AND_ASSIGN(SearchButton);
25 }; 25 };
26 26
27 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_ 27 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SEARCH_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698