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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame.h

Issue 2394123002: Views: Expose an on_closed callback via the MenuRunner constructor. (Closed)
Patch Set: default arg Created 4 years, 2 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
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_FRAME_BROWSER_FRAME_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class FontList; 24 class FontList;
25 class Rect; 25 class Rect;
26 } 26 }
27 27
28 namespace ui { 28 namespace ui {
29 class EventHandler; 29 class EventHandler;
30 class MenuModel; 30 class MenuModel;
31 } 31 }
32 32
33 namespace views { 33 namespace views {
34 class MenuModelAdapter;
35 class MenuRunner; 34 class MenuRunner;
36 class View; 35 class View;
37 } 36 }
38 37
39 // This is a virtual interface that allows system specific browser frames. 38 // This is a virtual interface that allows system specific browser frames.
40 class BrowserFrame 39 class BrowserFrame
41 : public views::Widget, 40 : public views::Widget,
42 public views::ContextMenuController { 41 public views::ContextMenuController {
43 public: 42 public:
44 explicit BrowserFrame(BrowserView* browser_view); 43 explicit BrowserFrame(BrowserView* browser_view);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. 135 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView.
137 BrowserNonClientFrameView* browser_frame_view_; 136 BrowserNonClientFrameView* browser_frame_view_;
138 137
139 // The BrowserView is our ClientView. This is a pointer to it. 138 // The BrowserView is our ClientView. This is a pointer to it.
140 BrowserView* browser_view_; 139 BrowserView* browser_view_;
141 140
142 std::unique_ptr<SystemMenuModelBuilder> menu_model_builder_; 141 std::unique_ptr<SystemMenuModelBuilder> menu_model_builder_;
143 142
144 // Used to show the system menu. Only used if 143 // Used to show the system menu. Only used if
145 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. 144 // NativeBrowserFrame::UsesNativeSystemMenu() returns false.
146 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_;
147 std::unique_ptr<views::MenuRunner> menu_runner_; 145 std::unique_ptr<views::MenuRunner> menu_runner_;
148 146
149 std::unique_ptr<ui::EventHandler> browser_command_handler_; 147 std::unique_ptr<ui::EventHandler> browser_command_handler_;
150 148
151 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); 149 DISALLOW_COPY_AND_ASSIGN(BrowserFrame);
152 }; 150 };
153 151
154 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 152 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698