Index: ash/common/wm_shell.h |
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h |
index aa97f46c168a1f37db49c675379de39488dc8590..aa3036879cbed789f35a59495027ed0b0409226a 100644 |
--- a/ash/common/wm_shell.h |
+++ b/ash/common/wm_shell.h |
@@ -33,6 +33,7 @@ class MaximizeModeController; |
class MruWindowTracker; |
class ScopedDisableInternalMouseAndKeyboard; |
class SessionStateDelegate; |
+class ShellDelegate; |
class ShellObserver; |
class SystemTrayDelegate; |
class SystemTrayNotifier; |
@@ -61,6 +62,8 @@ class ASH_EXPORT WmShell { |
static WmShell* Get(); |
static bool HasInstance() { return instance_ != nullptr; } |
+ ShellDelegate* delegate() { return delegate_.get(); } |
+ |
FocusCycler* focus_cycler() { return focus_cycler_.get(); } |
KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); } |
@@ -207,7 +210,7 @@ class ASH_EXPORT WmShell { |
#endif |
protected: |
- WmShell(); |
+ explicit WmShell(ShellDelegate* delegate); |
virtual ~WmShell(); |
base::ObserverList<ShellObserver>* shell_observers() { |
@@ -236,7 +239,7 @@ class ASH_EXPORT WmShell { |
static WmShell* instance_; |
base::ObserverList<ShellObserver> shell_observers_; |
- |
+ std::unique_ptr<ShellDelegate> delegate_; |
std::unique_ptr<FocusCycler> focus_cycler_; |
std::unique_ptr<KeyboardUI> keyboard_ui_; |
std::unique_ptr<MaximizeModeController> maximize_mode_controller_; |