Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / toolbar / bookmark_sub_menu_model.h
blobd1e7b0c7fb6d07f1e3dd6f89cee9a71f2de410cf
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
8 // For views and cocoa, we have complex delegate systems to handle
9 // injecting the bookmarks to the bookmark submenu. This is done to support
10 // advanced interactions with the menu contents, like right click context menus.
11 // For the time being on GTK systems, we have a dedicated bookmark menu model in
12 // chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h instead.
14 #if defined(TOOLKIT_GTK)
16 #include "chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.h"
18 #else // defined(TOOLKIT_GTK)
20 #include "ui/base/models/simple_menu_model.h"
22 class Browser;
24 class BookmarkSubMenuModel : public ui::SimpleMenuModel {
25 public:
26 BookmarkSubMenuModel(ui::SimpleMenuModel::Delegate* delegate,
27 Browser* browser);
28 virtual ~BookmarkSubMenuModel();
30 private:
31 void Build(Browser* browser);
33 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel);
36 #endif // defined(TOOLKIT_GTK)
38 #endif // CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_