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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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
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 <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "base/timer/elapsed_timer.h" 15 #include "base/timer/elapsed_timer.h"
16 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 16 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
17 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_registrar.h" 18 #include "content/public/browser/notification_registrar.h"
19 #include "ui/base/models/menu_model.h" 19 #include "ui/base/models/menu_model.h"
20 #include "ui/views/controls/menu/menu_delegate.h" 20 #include "ui/views/controls/menu/menu_delegate.h"
21 21
22 class AppMenuObserver; 22 class AppMenuObserver;
23 class BookmarkMenuDelegate; 23 class BookmarkMenuDelegate;
24 class Browser; 24 class Browser;
25 class ExtensionToolbarMenuView; 25 class ExtensionToolbarMenuView;
26 26
27 namespace ui {
28 class NativeTheme;
29 }
30
31 namespace views { 27 namespace views {
32 class MenuButton; 28 class MenuButton;
33 struct MenuConfig;
34 class MenuItemView; 29 class MenuItemView;
35 class MenuRunner; 30 class MenuRunner;
36 class View;
37 } 31 }
38 32
39 // AppMenu adapts the AppMenuModel to view's menu related classes. 33 // AppMenu adapts the AppMenuModel to view's menu related classes.
40 class AppMenu : public views::MenuDelegate, 34 class AppMenu : public views::MenuDelegate,
41 public bookmarks::BaseBookmarkModelObserver, 35 public bookmarks::BaseBookmarkModelObserver,
42 public content::NotificationObserver { 36 public content::NotificationObserver {
43 public: 37 public:
44 enum RunFlags { 38 enum RunFlags {
45 // Indicates that the menu was opened for a drag-and-drop operation. 39 // Indicates that the menu was opened for a drag-and-drop operation.
46 FOR_DROP = 1 << 0, 40 FOR_DROP = 1 << 0,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 194
201 base::ObserverList<AppMenuObserver> observer_list_; 195 base::ObserverList<AppMenuObserver> observer_list_;
202 196
203 // Records the time from when menu opens to when the user selects a menu item. 197 // Records the time from when menu opens to when the user selects a menu item.
204 base::ElapsedTimer menu_opened_timer_; 198 base::ElapsedTimer menu_opened_timer_;
205 199
206 DISALLOW_COPY_AND_ASSIGN(AppMenu); 200 DISALLOW_COPY_AND_ASSIGN(AppMenu);
207 }; 201 };
208 202
209 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_ 203 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.h ('k') | chrome/browser/ui/views/toolbar/back_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698