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

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

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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 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 7
8 // For views and cocoa, we have complex delegate systems to handle 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 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. 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.
13
14 #if defined(TOOLKIT_GTK)
15
16 #include "chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.h"
17
18 #else // defined(TOOLKIT_GTK)
19 11
20 #include "ui/base/models/simple_menu_model.h" 12 #include "ui/base/models/simple_menu_model.h"
21 13
22 class Browser; 14 class Browser;
23 15
24 class BookmarkSubMenuModel : public ui::SimpleMenuModel { 16 class BookmarkSubMenuModel : public ui::SimpleMenuModel {
25 public: 17 public:
26 BookmarkSubMenuModel(ui::SimpleMenuModel::Delegate* delegate, 18 BookmarkSubMenuModel(ui::SimpleMenuModel::Delegate* delegate,
27 Browser* browser); 19 Browser* browser);
28 virtual ~BookmarkSubMenuModel(); 20 virtual ~BookmarkSubMenuModel();
29 21
30 private: 22 private:
31 void Build(Browser* browser); 23 void Build(Browser* browser);
32 24
33 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel); 25 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel);
34 }; 26 };
35 27
36 #endif // defined(TOOLKIT_GTK)
37
38 #endif // CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_ 28 #endif // CHROME_BROWSER_UI_TOOLBAR_BOOKMARK_SUB_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698