Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / views / location_bar / star_view.h
blob1b0e63cbbf78be4b332949d0b7be0a0d461a352d
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_
8 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"
10 class Browser;
11 class CommandUpdater;
13 // The star icon to show a bookmark bubble.
14 class StarView : public BubbleIconView {
15 public:
16 StarView(CommandUpdater* command_updater, Browser* browser);
17 ~StarView() override;
19 // Toggles the star on or off.
20 void SetToggled(bool on);
22 protected:
23 // BubbleIconView:
24 bool IsBubbleShowing() const override;
25 void OnExecuting(BubbleIconView::ExecuteSource execute_source) override;
26 void ExecuteCommand(ExecuteSource source) override;
28 private:
29 Browser* browser_;
31 DISALLOW_COPY_AND_ASSIGN(StarView);
34 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_