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

Unified Diff: components/mus/example/wm/window_manager_application.h

Issue 1414943003: Moves move logic into WM instead of WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 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 | « components/mus/example/wm/move_loop.cc ('k') | components/mus/example/wm/window_manager_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/example/wm/window_manager_application.h
diff --git a/components/mus/example/wm/window_manager_application.h b/components/mus/example/wm/window_manager_application.h
index 3b3c5bb67f6dce2ef5a1d28baca6b9948f6f2157..058e132230c1e399e8bca5234a5341330aeaf4c7 100644
--- a/components/mus/example/wm/window_manager_application.h
+++ b/components/mus/example/wm/window_manager_application.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "components/mus/public/cpp/types.h"
+#include "components/mus/public/cpp/window_observer.h"
#include "components/mus/public/cpp/window_tree_delegate.h"
#include "components/mus/public/interfaces/window_manager.mojom.h"
#include "components/mus/public/interfaces/window_tree_host.mojom.h"
@@ -23,6 +24,7 @@ class WindowManagerImpl;
class WindowManagerApplication
: public mojo::ApplicationDelegate,
+ public mus::WindowObserver,
public mus::WindowTreeDelegate,
public mojo::InterfaceFactory<mus::mojom::WindowManager> {
public:
@@ -52,6 +54,9 @@ class WindowManagerApplication
mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<mus::mojom::WindowManager> request) override;
+ // mus::WindowObserver:
+ void OnWindowDestroyed(mus::Window* window) override;
+
// Sets up the window containers used for z-space management.
void CreateContainers();
« no previous file with comments | « components/mus/example/wm/move_loop.cc ('k') | components/mus/example/wm/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698