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

Unified Diff: ash/root_window_controller.h

Issue 1953753002: Turn RootWindowController Menus Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.h
diff --git a/ash/root_window_controller.h b/ash/root_window_controller.h
index a45ce1804299a3d962880a3bf760e75e6337974c..283468ec5f719803cb48d1f6948ec15864a15e5e 100644
--- a/ash/root_window_controller.h
+++ b/ash/root_window_controller.h
@@ -34,9 +34,12 @@ class KeyboardController;
namespace ui {
class EventHandler;
+class MenuModel;
}
namespace views {
+class MenuModelAdapter;
+class MenuRunner;
class Widget;
}
@@ -254,6 +257,9 @@ class ASH_EXPORT RootWindowController : public ShellObserver {
// Disables projection touch HUD.
void DisableTouchHudProjection();
+ // Callback for MenuModelAdapter.
+ void OnMenuClosed();
+
// Overridden from ShellObserver.
void OnLoginStateChanged(user::LoginStatus status) override;
void OnTouchHudProjectionToggled(bool enabled) override;
@@ -303,6 +309,11 @@ class ASH_EXPORT RootWindowController : public ShellObserver {
std::unique_ptr<AnimatingDesktopController> animating_wallpaper_controller_;
std::unique_ptr<::wm::ScopedCaptureClient> capture_client_;
+ // Manages the context menu.
+ std::unique_ptr<ui::MenuModel> menu_model_;
+ std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_;
+ std::unique_ptr<views::MenuRunner> menu_runner_;
+
DISALLOW_COPY_AND_ASSIGN(RootWindowController);
};
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698