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

Side by Side Diff: chrome/browser/ui/views/toolbar/app_menu.h

Issue 1417423003: chrome: Rename WrenchMenuModel to AppMenuModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TOOLBAR_APP_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 namespace views { 31 namespace views {
32 class MenuButton; 32 class MenuButton;
33 struct MenuConfig; 33 struct MenuConfig;
34 class MenuItemView; 34 class MenuItemView;
35 class MenuRunner; 35 class MenuRunner;
36 class View; 36 class View;
37 } 37 }
38 38
39 // AppMenu adapts the WrenchMenuModel to view's menu related classes. 39 // AppMenu adapts the AppMenuModel to view's menu related classes.
40 class AppMenu : public views::MenuDelegate, 40 class AppMenu : public views::MenuDelegate,
41 public bookmarks::BaseBookmarkModelObserver, 41 public bookmarks::BaseBookmarkModelObserver,
42 public content::NotificationObserver { 42 public content::NotificationObserver {
43 public: 43 public:
44 enum RunFlags { 44 enum RunFlags {
45 // Indicates that the menu was opened for a drag-and-drop operation. 45 // Indicates that the menu was opened for a drag-and-drop operation.
46 FOR_DROP = 1 << 0, 46 FOR_DROP = 1 << 0,
47 }; 47 };
48 48
49 AppMenu(Browser* browser, int run_flags); 49 AppMenu(Browser* browser, int run_flags);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 base::ObserverList<AppMenuObserver> observer_list_; 200 base::ObserverList<AppMenuObserver> observer_list_;
201 201
202 // Records the time from when menu opens to when the user selects a menu item. 202 // Records the time from when menu opens to when the user selects a menu item.
203 base::ElapsedTimer menu_opened_timer_; 203 base::ElapsedTimer menu_opened_timer_;
204 204
205 DISALLOW_COPY_AND_ASSIGN(AppMenu); 205 DISALLOW_COPY_AND_ASSIGN(AppMenu);
206 }; 206 };
207 207
208 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_ 208 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/system_menu_model_builder.cc ('k') | chrome/browser/ui/views/toolbar/app_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698