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(); |