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

Unified Diff: chrome/browser/ui/toolbar/bookmark_sub_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
« no previous file with comments | « chrome/browser/ui/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/ui/toolbar/bookmark_sub_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/bookmark_sub_menu_model.h
===================================================================
--- chrome/browser/ui/toolbar/bookmark_sub_menu_model.h (revision 105454)
+++ chrome/browser/ui/toolbar/bookmark_sub_menu_model.h (working copy)
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
+#define CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
+#pragma once
+
+// For views and cocoa, we have complex delegate systems to handle
+// injecting the bookmarks to the bookmark submenu. This is done to support
+// advanced interactions with the menu contents, like right click context menus.
+// For the time being on GTK systems, we have a dedicated bookmark menu model in
+// chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h instead.
+
+#if defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS)
+
+#include "chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h"
+
+#else // defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS)
+
+#include "ui/base/models/simple_menu_model.h"
+
+class Browser;
+
+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);
+};
+
+#endif // defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS)
+
+#endif // CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
« no previous file with comments | « chrome/browser/ui/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/ui/toolbar/bookmark_sub_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698