Chromium Code Reviews| Index: ash/common/wm_shell.h |
| diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h |
| index 0a09d084b1a5a2e6a8ebff1d85b1b30003dbf6cc..56c62c0764542d9028cdb5789c0bbd123a839da3 100644 |
| --- a/ash/common/wm_shell.h |
| +++ b/ash/common/wm_shell.h |
| @@ -34,6 +34,10 @@ class Insets; |
| class Point; |
| } |
| +namespace shell { |
| +class Connector; |
| +} |
| + |
| namespace views { |
| class PointerWatcher; |
| enum class PointerWatcherEventTypes; |
| @@ -62,6 +66,7 @@ class ShelfWindowWatcher; |
| class ShellDelegate; |
| class ShellObserver; |
| class SystemTrayDelegate; |
| +class SystemTrayController; |
| class SystemTrayNotifier; |
| class ToastManager; |
| class WallpaperController; |
| @@ -96,7 +101,8 @@ class ASH_EXPORT WmShell { |
| static WmShell* Get(); |
| static bool HasInstance() { return instance_ != nullptr; } |
| - void Initialize(const scoped_refptr<base::SequencedWorkerPool>& pool); |
| + void Initialize(const scoped_refptr<base::SequencedWorkerPool>& pool, |
| + ::shell::Connector* connector); |
| virtual void Shutdown(); |
| ShellDelegate* delegate() { return delegate_.get(); } |
| @@ -144,6 +150,10 @@ class ASH_EXPORT WmShell { |
| ShelfModel* shelf_model() { return shelf_model_.get(); } |
| + SystemTrayController* system_tray_controller() { |
| + return system_tray_controller_.get(); |
| + } |
| + |
| SystemTrayNotifier* system_tray_notifier() { |
| return system_tray_notifier_.get(); |
| } |
| @@ -168,6 +178,9 @@ class ASH_EXPORT WmShell { |
| return window_selector_controller_.get(); |
| } |
| + // Returns true when ash is running in its own process. |
|
msw
2016/09/30 23:26:49
nit: s/process/mojo application/? (might still be
James Cook
2016/10/03 18:07:56
Done.
|
| + virtual bool IsRunningInMash() const = 0; |
| + |
| virtual WmWindow* NewWindow(ui::wm::WindowType window_type, |
| ui::LayerType layer_type) = 0; |
| @@ -453,6 +466,7 @@ class ASH_EXPORT WmShell { |
| std::unique_ptr<ShelfDelegate> shelf_delegate_; |
| std::unique_ptr<ShelfModel> shelf_model_; |
| std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
| + std::unique_ptr<SystemTrayController> system_tray_controller_; |
| std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; |
| std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; |
| std::unique_ptr<ToastManager> toast_manager_; |