Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/action_box_button_view.h |
| diff --git a/chrome/browser/ui/views/location_bar/action_box_button_view.h b/chrome/browser/ui/views/location_bar/action_box_button_view.h |
| index 522eb4e03120114a357c1a75a1ab0c6baeea9b90..f8a13518246fb6cc9e208560903e1c6c380443e7 100644 |
| --- a/chrome/browser/ui/views/location_bar/action_box_button_view.h |
| +++ b/chrome/browser/ui/views/location_bar/action_box_button_view.h |
| @@ -8,18 +8,23 @@ |
| #include "ui/views/controls/button/menu_button.h" |
| #include "ui/views/controls/button/menu_button_listener.h" |
| -class ExtensionService; |
| +class Browser; |
| +class Profile; |
| // ActionBoxButtonView displays a plus button with associated menu. |
| class ActionBoxButtonView : public views::MenuButton, |
| public views::MenuButtonListener { |
| public: |
| - explicit ActionBoxButtonView(ExtensionService* extension_service); |
| + explicit ActionBoxButtonView(Browser* browser, Profile* profile); |
| virtual ~ActionBoxButtonView(); |
| SkColor GetBackgroundColor(); |
| SkColor GetBorderColor(); |
| + void set_starred(bool starred) { |
|
Peter Kasting
2012/08/03 23:17:42
Nit: We often put the whole definition on one line
yefimt
2012/08/07 00:47:06
Done.
|
| + starred_ = starred; |
| + } |
| + |
| private: |
| // CustomButton |
| virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| @@ -28,7 +33,12 @@ class ActionBoxButtonView : public views::MenuButton, |
| virtual void OnMenuButtonClicked(View* source, |
| const gfx::Point& point) OVERRIDE; |
| - ExtensionService* extension_service_; |
| + Browser* browser_; |
| + Profile* profile_; |
| + |
| + // Set to true when the current page is bookmarked. |
| + // To be passed to action box menu when this button is pressed. |
| + bool starred_; |
| DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView); |
| }; |