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

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

Issue 2348853004: Remove non-md code in location bar (Views). (Closed)
Patch Set: resolve change collision Created 4 years, 3 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
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_LOCATION_BAR_STAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" 9 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"
10 10
11 class Browser; 11 class Browser;
12 class CommandUpdater; 12 class CommandUpdater;
13 13
14 // The star icon to show a bookmark bubble. 14 // The star icon to show a bookmark bubble.
15 class StarView : public BubbleIconView { 15 class StarView : public BubbleIconView {
16 public: 16 public:
17 StarView(CommandUpdater* command_updater, Browser* browser); 17 StarView(CommandUpdater* command_updater, Browser* browser);
18 ~StarView() override; 18 ~StarView() override;
19 19
20 // Toggles the star on or off. 20 // Toggles the star on or off.
21 void SetToggled(bool on); 21 void SetToggled(bool on);
22 22
23 protected: 23 protected:
24 // BubbleIconView: 24 // BubbleIconView:
25 void OnExecuting(BubbleIconView::ExecuteSource execute_source) override; 25 void OnExecuting(BubbleIconView::ExecuteSource execute_source) override;
26 void ExecuteCommand(ExecuteSource source) override; 26 void ExecuteCommand(ExecuteSource source) override;
27 views::BubbleDialogDelegateView* GetBubble() const override; 27 views::BubbleDialogDelegateView* GetBubble() const override;
28 bool SetRasterIcon() override;
29 gfx::VectorIconId GetVectorIcon() const override; 28 gfx::VectorIconId GetVectorIcon() const override;
30 29
31 private: 30 private:
32 Browser* browser_; 31 Browser* browser_;
33 32
34 DISALLOW_COPY_AND_ASSIGN(StarView); 33 DISALLOW_COPY_AND_ASSIGN(StarView);
35 }; 34 };
36 35
37 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ 36 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/selected_keyword_view.cc ('k') | chrome/browser/ui/views/location_bar/star_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698