| 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..1e25d265491267ae520c418ce70a32b9d8a0df3b 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,33 @@
|
| #include "ui/views/controls/button/menu_button.h"
|
| #include "ui/views/controls/button/menu_button_listener.h"
|
|
|
| -class ExtensionService;
|
| +class ActionBoxMenu;
|
| +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);
|
| + class Delegate {
|
| + public:
|
| + virtual Browser* GetBrowser() const = 0;
|
| +
|
| + protected:
|
| + ~Delegate() {}
|
| + };
|
| +
|
| + explicit ActionBoxButtonView(Profile* profile,
|
| + Delegate* delegate);
|
| virtual ~ActionBoxButtonView();
|
|
|
| SkColor GetBackgroundColor();
|
| SkColor GetBorderColor();
|
|
|
| + void set_bookmark_state(bool bookmark_state) {
|
| + bookmark_state_ = bookmark_state;
|
| + }
|
| +
|
| private:
|
| // CustomButton
|
| virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
|
| @@ -28,7 +43,10 @@ class ActionBoxButtonView : public views::MenuButton,
|
| virtual void OnMenuButtonClicked(View* source,
|
| const gfx::Point& point) OVERRIDE;
|
|
|
| - ExtensionService* extension_service_;
|
| + Profile* profile_;
|
| + Delegate* delegate_;
|
| + scoped_ptr<ActionBoxMenu> action_box_menu_;
|
| + bool bookmark_state_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView);
|
| };
|
|
|