Chromium Code Reviews| Index: chrome/browser/ui/views/avatar_menu_button.h |
| diff --git a/chrome/browser/ui/views/avatar_menu_button.h b/chrome/browser/ui/views/avatar_menu_button.h |
| index 9674995dcc5ad7ac1b906652aa77d109e8d7c1db..5337958a32fc4e7162a338f1730dfbe0d05ed808 100644 |
| --- a/chrome/browser/ui/views/avatar_menu_button.h |
| +++ b/chrome/browser/ui/views/avatar_menu_button.h |
| @@ -16,6 +16,7 @@ |
| namespace gfx { |
| class Canvas; |
| } |
| +class Browser; |
| // AvatarMenuButton |
| // |
| @@ -25,18 +26,21 @@ class Canvas; |
| class AvatarMenuButton : public views::MenuButton, |
| public views::ViewMenuDelegate { |
| public: |
| - // Creates a new button. The object will take ownership of the menu model. |
| - AvatarMenuButton(const std::wstring& text, ui::MenuModel* menu_model); |
| + // Creates a new button. |
| + AvatarMenuButton(Browser* browser, bool has_menu); |
|
sky
2011/07/08 23:03:35
Document has_menu. And make this take a Profile in
sail
2011/07/08 23:07:55
Added documentation. I still need the browser para
|
| virtual ~AvatarMenuButton(); |
| // views::MenuButton |
| virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| + virtual bool HitTest(const gfx::Point& point) const OVERRIDE; |
| private: |
| // views::ViewMenuDelegate |
| virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE; |
| + Browser* browser_; |
| + bool has_menu_; |
| scoped_ptr<ui::MenuModel> menu_model_; |
| DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); |