Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.h

Issue 8286018: Reland r105450: Linux: add basic bookmark menu support. More features can be added later. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/wrench_menu_model.h
===================================================================
--- chrome/browser/ui/toolbar/wrench_menu_model.h (revision 105454)
+++ chrome/browser/ui/toolbar/wrench_menu_model.h (working copy)
@@ -9,6 +9,7 @@
#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"
@@ -70,18 +71,6 @@
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,
@@ -127,6 +116,10 @@
// 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();
« no previous file with comments | « chrome/browser/ui/toolbar/bookmark_sub_menu_model.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698