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

Unified Diff: mash/wm/window_manager_application.cc

Issue 1492323003: Updates shadow when active window changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years 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 | « mash/wm/window_manager_application.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager_application.cc
diff --git a/mash/wm/window_manager_application.cc b/mash/wm/window_manager_application.cc
index 3a211d5d37292335fbb914b61c031d18ab22b838..ad0d4c6a9a65d3918bf555166bbc43323bdeeab5 100644
--- a/mash/wm/window_manager_application.cc
+++ b/mash/wm/window_manager_application.cc
@@ -12,6 +12,7 @@
#include "components/mus/public/cpp/window_tree_host_factory.h"
#include "mash/wm/accelerator_registrar_impl.h"
#include "mash/wm/background_layout.h"
+#include "mash/wm/shadow_controller.h"
#include "mash/wm/shelf_layout.h"
#include "mash/wm/window_layout.h"
#include "mash/wm/window_manager_impl.h"
@@ -130,12 +131,15 @@ void WindowManagerApplication::OnEmbed(mus::Window* root) {
for (auto request : requests_)
window_manager_binding_.AddBinding(window_manager_.get(), request->Pass());
requests_.clear();
+
+ shadow_controller_.reset(new ShadowController(root->connection()));
}
void WindowManagerApplication::OnConnectionLost(
mus::WindowTreeConnection* connection) {
// TODO(sky): shutdown.
NOTIMPLEMENTED();
+ shadow_controller_.reset();
}
void WindowManagerApplication::Create(
« no previous file with comments | « mash/wm/window_manager_application.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698