Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / location_bar / star_view.h
blob3aa91ec28e9cdb6460b6a6dcae9b3cc500aeb4ec
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 CommandUpdater;
12 // The star icon to show a bookmark bubble.
13 class StarView : public BubbleIconView {
14 public:
15 explicit StarView(CommandUpdater* command_updater);
16 virtual ~StarView();
18 // Toggles the star on or off.
19 void SetToggled(bool on);
21 protected:
22 // BubbleIconView:
23 virtual bool IsBubbleShowing() const OVERRIDE;
24 virtual void OnExecuting(
25 BubbleIconView::ExecuteSource execute_source) OVERRIDE;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(StarView);
31 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_