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

Unified Diff: ash/common/wm_shell.h

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: rebase again Created 4 years, 2 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/common/system/tray/system_tray_delegate.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 0a09d084b1a5a2e6a8ebff1d85b1b30003dbf6cc..abd73fd81274b10a2be18500351fd119b2517f52 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;
@@ -144,6 +149,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 +177,9 @@ class ASH_EXPORT WmShell {
return window_selector_controller_.get();
}
+ // Returns true when ash is running in its own mojo application/service.
+ virtual bool IsRunningInMash() const = 0;
+
virtual WmWindow* NewWindow(ui::wm::WindowType window_type,
ui::LayerType layer_type) = 0;
@@ -453,6 +465,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_;
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698