diff options
Diffstat (limited to 'chrome/browser/ui/toolbar/wrench_menu_model.h')
-rw-r--r-- | chrome/browser/ui/toolbar/wrench_menu_model.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.h b/chrome/browser/ui/toolbar/wrench_menu_model.h index 1b5cf6a..1446e67 100644 --- a/chrome/browser/ui/toolbar/wrench_menu_model.h +++ b/chrome/browser/ui/toolbar/wrench_menu_model.h @@ -9,7 +9,6 @@ #include "base/file_path.h" #include "base/memory/scoped_ptr.h" #include "chrome/browser/tabs/tab_strip_model_observer.h" -#include "chrome/browser/ui/toolbar/bookmark_sub_menu_model.h" #include "content/common/notification_observer.h" #include "content/common/notification_registrar.h" #include "ui/base/models/accelerator.h" @@ -71,6 +70,18 @@ class ToolsMenuModel : public ui::SimpleMenuModel { DISALLOW_COPY_AND_ASSIGN(ToolsMenuModel); }; +class BookmarkSubMenuModel : public ui::SimpleMenuModel { + public: + BookmarkSubMenuModel(ui::SimpleMenuModel::Delegate* delegate, + Browser* browser); + virtual ~BookmarkSubMenuModel(); + + private: + void Build(Browser* browser); + + DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel); +}; + // A menu model that builds the contents of the wrench menu. class WrenchMenuModel : public ui::SimpleMenuModel, public ui::SimpleMenuModel::Delegate, @@ -116,10 +127,6 @@ class WrenchMenuModel : public ui::SimpleMenuModel, // Getters. Browser* browser() const { return browser_; } - BookmarkSubMenuModel* bookmark_sub_menu_model() const { - return bookmark_sub_menu_model_.get(); - } - // Calculates |zoom_label_| in response to a zoom change. void UpdateZoomControls(); |