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

Unified Diff: ash/mus/bridge/wm_shell_mus.h

Issue 2187703003: Wires up registering accelerators from mash with the wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 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 | « ash/mus/accelerators/accelerator_registrar_unittest.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_shell_mus.h
diff --git a/ash/mus/bridge/wm_shell_mus.h b/ash/mus/bridge/wm_shell_mus.h
index 6a9f1b59c33e21c1902c9a65a23fdc4c29712ffa..e9daf0636bfb3072cd9613a396c07bc1e4846dd6 100644
--- a/ash/mus/bridge/wm_shell_mus.h
+++ b/ash/mus/bridge/wm_shell_mus.h
@@ -27,6 +27,8 @@ namespace ash {
namespace mus {
class AcceleratorControllerDelegateMus;
+class AcceleratorControllerRegistrar;
+class WindowManager;
class WmRootWindowControllerMus;
class WmWindowMus;
@@ -34,7 +36,7 @@ class WmWindowMus;
class WmShellMus : public WmShell, public ::ui::WindowTreeClientObserver {
public:
WmShellMus(std::unique_ptr<ShellDelegate> shell_delegate,
- ::ui::WindowTreeClient* client);
+ WindowManager* window_manager);
~WmShellMus() override;
static WmShellMus* Get();
@@ -48,6 +50,10 @@ class WmShellMus : public WmShell, public ::ui::WindowTreeClientObserver {
WmRootWindowControllerMus* GetRootWindowControllerWithDisplayId(int64_t id);
+ AcceleratorControllerDelegateMus* accelerator_controller_delegate() {
+ return accelerator_controller_delegate_.get();
+ }
+
// WmShell:
WmWindow* NewContainerWindow() override;
WmWindow* GetFocusedWindow() override;
@@ -89,22 +95,24 @@ class WmShellMus : public WmShell, public ::ui::WindowTreeClientObserver {
#endif
private:
+ ::ui::WindowTreeClient* window_tree_client();
+
// Returns true if |window| is a window that can have active children.
static bool IsActivationParent(::ui::Window* window);
- void RemoveClientObserver();
-
// ::ui::WindowTreeClientObserver:
void OnWindowTreeFocusChanged(::ui::Window* gained_focus,
::ui::Window* lost_focus) override;
void OnDidDestroyClient(::ui::WindowTreeClient* client) override;
- ::ui::WindowTreeClient* client_;
+ WindowManager* window_manager_;
std::vector<WmRootWindowControllerMus*> root_window_controllers_;
std::unique_ptr<AcceleratorControllerDelegateMus>
accelerator_controller_delegate_;
+ std::unique_ptr<AcceleratorControllerRegistrar>
+ accelerator_controller_registrar_;
std::unique_ptr<SessionStateDelegate> session_state_delegate_;
base::ObserverList<WmActivationObserver> activation_observers_;
« no previous file with comments | « ash/mus/accelerators/accelerator_registrar_unittest.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698