Chromium Code Reviews| Index: ash/common/wm_shell.h |
| diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h |
| index 6d9498fe2e3dea5760139637be6c61a7f5e89fe4..ea07f9c539567a871e6d40ccfe78a9abeefbabec 100644 |
| --- a/ash/common/wm_shell.h |
| +++ b/ash/common/wm_shell.h |
| @@ -30,17 +30,22 @@ class MruWindowTracker; |
| class SessionStateDelegate; |
| class ShellObserver; |
| class SystemTrayDelegate; |
| +class SystemTrayNotifier; |
| class WindowResizer; |
| class WindowSelectorController; |
| class WmActivationObserver; |
| class WmDisplayObserver; |
| -class SystemTrayNotifier; |
| +class WmRootWindowController; |
| class WmWindow; |
| namespace wm { |
| class WindowState; |
| } |
| +#if defined(OS_CHROMEOS) |
| +class LogoutConfirmationController; |
| +#endif |
| + |
| // Similar to ash::Shell. Eventually the two will be merged. |
| class ASH_EXPORT WmShell { |
| public: |
| @@ -75,6 +80,10 @@ class ASH_EXPORT WmShell { |
| virtual WmWindow* GetPrimaryRootWindow() = 0; |
| + // Convenience method. Returns the WmRootWindowController for the primary |
| + // root window. |
| + WmRootWindowController* GetPrimaryRootWindowController(); |
| + |
| // Returns the root window for the specified display. |
| virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; |
| @@ -157,6 +166,10 @@ class ASH_EXPORT WmShell { |
| virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
| #if defined(OS_CHROMEOS) |
| + LogoutConfirmationController* logout_confirmation_controller() { |
| + return logout_confirmation_controller_.get(); |
| + } |
| + |
| // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
| virtual void ToggleIgnoreExternalKeyboard() = 0; |
| #endif |
| @@ -171,6 +184,12 @@ class ASH_EXPORT WmShell { |
| void DeleteWindowSelectorController(); |
| +#if defined(OS_CHROMEOS) |
| + // Must be created after SystemTrayDelegate. |
|
msw
2016/06/28 19:31:04
nit: // Must be created after and destroyed before
James Cook
2016/06/28 20:14:46
Deleted these methods.
|
| + void CreateLogoutConfirmationController(); |
| + void DeleteLogoutConfirmationController(); |
| +#endif |
| + |
| private: |
| friend class Shell; |
| @@ -182,6 +201,10 @@ class ASH_EXPORT WmShell { |
| std::unique_ptr<WindowSelectorController> window_selector_controller_; |
| bool simulate_modal_window_open_for_testing_ = false; |
| + |
| +#if defined(OS_CHROMEOS) |
| + std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| +#endif |
| }; |
| } // namespace ash |