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

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

Issue 768413003: TEST ONLY - DO NOT SUBMIT - FOR TRYBOTS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge Created 5 years, 11 months 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/origin_chip_view.cc ('k') | chrome/browser/ui/views/location_bar/search_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698