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

Unified Diff: ash/common/wm_shell.h

Issue 2391253004: Use mojo Shelf interfaces for both mash and classic ash. (Closed)
Patch Set: Sync and rebase. 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
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 9ea890c6c1944fb3ae61978d844fc16d25097d30..92d6df2954ce7a1d7da2a64e769ba9063df23456 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -14,6 +14,7 @@
#include "ash/common/media_delegate.h"
#include "ash/common/metrics/gesture_action_type.h"
#include "ash/common/metrics/user_metrics_action.h"
+#include "ash/common/shelf/shelf_controller.h"
#include "ash/common/wm/lock_state_observer.h"
#include "base/observer_list.h"
#include "ui/base/ui_base_types.h"
@@ -60,6 +61,7 @@ class NewWindowDelegate;
class PaletteDelegate;
class ScopedDisableInternalMouseAndKeyboard;
class SessionStateDelegate;
+class ShelfController;
class ShelfDelegate;
class ShelfModel;
class ShelfWindowWatcher;
@@ -145,9 +147,11 @@ class ASH_EXPORT WmShell {
PaletteDelegate* palette_delegate() { return palette_delegate_.get(); }
+ ShelfController* shelf_controller() { return shelf_controller_.get(); }
+
ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); }
- ShelfModel* shelf_model() { return shelf_model_.get(); }
+ ShelfModel* shelf_model() { return shelf_controller_->model(); }
SystemTrayController* system_tray_controller() {
return system_tray_controller_.get();
@@ -462,8 +466,8 @@ class ASH_EXPORT WmShell {
std::unique_ptr<MruWindowTracker> mru_window_tracker_;
std::unique_ptr<NewWindowDelegate> new_window_delegate_;
std::unique_ptr<PaletteDelegate> palette_delegate_;
+ std::unique_ptr<ShelfController> shelf_controller_;
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_;

Powered by Google App Engine
This is Rietveld 408576698