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

Side by Side Diff: chrome/browser/ui/views/wrench_menu.h

Issue 11298004: alternate ntp: add "Recent Tabs" submenu to wrench menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_WRENCH_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" 12 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h"
13 #include "content/public/browser/notification_observer.h" 13 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 14 #include "content/public/browser/notification_registrar.h"
15 #include "ui/base/models/menu_model.h" 15 #include "ui/base/models/menu_model.h"
16 #include "ui/views/controls/menu/menu_delegate.h" 16 #include "ui/views/controls/menu/menu_delegate.h"
17 17
18 class BookmarkMenuDelegate; 18 class BookmarkMenuDelegate;
19 class Browser; 19 class Browser;
20 class RecentTabsMenuModelDelegate;
20 21
21 namespace views { 22 namespace views {
22 class MenuButton; 23 class MenuButton;
23 class MenuItemView; 24 class MenuItemView;
24 class MenuRunner; 25 class MenuRunner;
25 class View; 26 class View;
26 } // namespace views 27 } // namespace views
27 28
28 // WrenchMenu adapts the WrenchMenuModel to view's menu related classes. 29 // WrenchMenu adapts the WrenchMenuModel to view's menu related classes.
29 class WrenchMenu : public views::MenuDelegate, 30 class WrenchMenu : public views::MenuDelegate,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 // Used for managing the bookmark menu items. 143 // Used for managing the bookmark menu items.
143 scoped_ptr<BookmarkMenuDelegate> bookmark_menu_delegate_; 144 scoped_ptr<BookmarkMenuDelegate> bookmark_menu_delegate_;
144 145
145 // Menu corresponding to IDC_BOOKMARKS_MENU. 146 // Menu corresponding to IDC_BOOKMARKS_MENU.
146 views::MenuItemView* bookmark_menu_; 147 views::MenuItemView* bookmark_menu_;
147 148
148 // Menu corresponding to IDC_FEEDBACK. 149 // Menu corresponding to IDC_FEEDBACK.
149 views::MenuItemView* feedback_menu_item_; 150 views::MenuItemView* feedback_menu_item_;
150 151
152 // Used for managing "Recent tabs" menu items.
153 scoped_ptr<RecentTabsMenuModelDelegate> recent_tabs_menu_model_delegate_;
154
151 // ID to use for the items representing bookmarks in the bookmark menu. 155 // ID to use for the items representing bookmarks in the bookmark menu.
152 int first_bookmark_command_id_; 156 int first_bookmark_command_id_;
153 157
154 content::NotificationRegistrar registrar_; 158 content::NotificationRegistrar registrar_;
155 159
156 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); 160 DISALLOW_COPY_AND_ASSIGN(WrenchMenu);
157 }; 161 };
158 162
159 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ 163 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698