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

Unified Diff: ash/mus/shell_delegate_mus.cc

Issue 2259153002: mash: Port ash_sysui ShelfDelegateMus impl to mojo:ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 4 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/mus/shelf_layout_manager_delegate.h ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shell_delegate_mus.cc
diff --git a/ash/mus/shell_delegate_mus.cc b/ash/mus/shell_delegate_mus.cc
index 873a63040e376498f5b8f36830d86890a3c2776b..5e1d6d4c0d1c9bcd1ae909af68e1cd6a324cb910 100644
--- a/ash/mus/shell_delegate_mus.cc
+++ b/ash/mus/shell_delegate_mus.cc
@@ -10,12 +10,13 @@
#include "ash/common/media_delegate.h"
#include "ash/common/palette_delegate.h"
#include "ash/common/session/session_state_delegate.h"
-#include "ash/common/shelf/shelf_delegate.h"
#include "ash/common/system/tray/default_system_tray_delegate.h"
#include "ash/common/wallpaper/wallpaper_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/mus/accessibility_delegate_mus.h"
#include "ash/mus/context_menu_mus.h"
#include "ash/mus/new_window_delegate_mus.h"
+#include "ash/mus/shelf_delegate_mus.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
@@ -100,31 +101,6 @@ class MediaDelegateStub : public MediaDelegate {
DISALLOW_COPY_AND_ASSIGN(MediaDelegateStub);
};
-class ShelfDelegateStub : public ShelfDelegate {
- public:
- ShelfDelegateStub() {}
- ~ShelfDelegateStub() override {}
-
- // ShelfDelegate overrides:
- void OnShelfCreated(WmShelf* shelf) override {}
- void OnShelfDestroyed(WmShelf* shelf) override {}
- void OnShelfAlignmentChanged(WmShelf* shelf) override {}
- void OnShelfAutoHideBehaviorChanged(WmShelf* shelf) override {}
- void OnShelfAutoHideStateChanged(WmShelf* shelf) override {}
- void OnShelfVisibilityStateChanged(WmShelf* shelf) override {}
- ShelfID GetShelfIDForAppID(const std::string& app_id) override { return 0; }
- bool HasShelfIDToAppIDMapping(ShelfID id) const override { return false; }
- const std::string& GetAppIDForShelfID(ShelfID id) override {
- return base::EmptyString();
- }
- void PinAppWithID(const std::string& app_id) override {}
- bool IsAppPinned(const std::string& app_id) override { return false; }
- void UnpinAppWithID(const std::string& app_id) override {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ShelfDelegateStub);
-};
-
} // namespace
ShellDelegateMus::ShellDelegateMus(
@@ -193,8 +169,7 @@ app_list::AppListPresenter* ShellDelegateMus::GetAppListPresenter() {
}
ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) {
- // TODO(mash): Implement a real shelf delegate; maybe port ShelfDelegateMus?
- return new ShelfDelegateStub;
+ return new ShelfDelegateMus(WmShell::Get()->shelf_model());
}
SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() {
« no previous file with comments | « ash/mus/shelf_layout_manager_delegate.h ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698