| Index: chrome/browser/ui/views/wrench_menu.h
|
| ===================================================================
|
| --- chrome/browser/ui/views/wrench_menu.h (revision 104036)
|
| +++ chrome/browser/ui/views/wrench_menu.h (working copy)
|
| @@ -11,6 +11,8 @@
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| #include "chrome/browser/bookmarks/base_bookmark_model_observer.h"
|
| +#include "content/common/notification_observer.h"
|
| +#include "content/common/notification_registrar.h"
|
| #include "ui/base/models/menu_model.h"
|
| #include "views/controls/menu/menu_delegate.h"
|
|
|
| @@ -26,7 +28,8 @@
|
|
|
| // WrenchMenu adapts the WrenchMenuModel to view's menu related classes.
|
| class WrenchMenu : public views::MenuDelegate,
|
| - public BaseBookmarkModelObserver {
|
| + public BaseBookmarkModelObserver,
|
| + public NotificationObserver {
|
| public:
|
| explicit WrenchMenu(Browser* browser);
|
| virtual ~WrenchMenu();
|
| @@ -71,6 +74,11 @@
|
| // BaseBookmarkModelObserver overrides:
|
| virtual void BookmarkModelChanged() OVERRIDE;
|
|
|
| + // NotificationObserver overrides:
|
| + virtual void Observe(int type,
|
| + const NotificationSource& source,
|
| + const NotificationDetails& details) OVERRIDE;
|
| +
|
| private:
|
| class CutCopyPasteView;
|
| class ZoomView;
|
| @@ -134,6 +142,8 @@
|
| // ID to use for the items representing bookmarks in the bookmark menu.
|
| int first_bookmark_command_id_;
|
|
|
| + NotificationRegistrar registrar_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WrenchMenu);
|
| };
|
|
|
|
|