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

Side by Side Diff: chrome/browser/ui/toolbar/bookmark_sub_menu_model.h

Issue 8775029: Makes gtk show the 'mobile' bookmark folder where appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 // For views and cocoa, we have complex delegate systems to handle 9 // For views and cocoa, we have complex delegate systems to handle
10 // injecting the bookmarks to the bookmark submenu. This is done to support 10 // injecting the bookmarks to the bookmark submenu. This is done to support
11 // advanced interactions with the menu contents, like right click context menus. 11 // advanced interactions with the menu contents, like right click context menus.
12 // For the time being on GTK systems, we have a dedicated bookmark menu model in 12 // For the time being on GTK systems, we have a dedicated bookmark menu model in
13 // chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h instead. 13 // chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h instead.
14 14
15 #if defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS) 15 #if defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS)
16 16
17 #include "chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h" 17 #include "chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.h"
18 18
19 #else // defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS) 19 #else // defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS)
20 20
21 #include "ui/base/models/simple_menu_model.h" 21 #include "ui/base/models/simple_menu_model.h"
22 22
23 class Browser; 23 class Browser;
24 24
25 class BookmarkSubMenuModel : public ui::SimpleMenuModel { 25 class BookmarkSubMenuModel : public ui::SimpleMenuModel {
26 public: 26 public:
27 BookmarkSubMenuModel(ui::SimpleMenuModel::Delegate* delegate, 27 BookmarkSubMenuModel(ui::SimpleMenuModel::Delegate* delegate,
28 Browser* browser); 28 Browser* browser);
29 virtual ~BookmarkSubMenuModel(); 29 virtual ~BookmarkSubMenuModel();
30 30
31 private: 31 private:
32 void Build(Browser* browser); 32 void Build(Browser* browser);
33 33
34 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel); 34 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel);
35 }; 35 };
36 36
37 #endif // defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS) 37 #endif // defined(TOOLKIT_USES_GTK) && !defined(TOOLKIT_VIEWS)
38 38
39 #endif // CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_ 39 #endif // CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
OLDNEW
« 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