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

Unified Diff: mash/wm/window_manager.h

Issue 1907153002: mash/wm: Fix detecting container windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 | « mash/wm/root_window_controller.cc ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager.h
diff --git a/mash/wm/window_manager.h b/mash/wm/window_manager.h
index 3c6ade742549d269fef5a7e8dd64e97d01e20b19..fdb28d2ca3b69d3e95e83edae2bdbcb19eb49bdd 100644
--- a/mash/wm/window_manager.h
+++ b/mash/wm/window_manager.h
@@ -13,8 +13,10 @@
#include "components/mus/common/types.h"
#include "components/mus/public/cpp/window_manager_delegate.h"
#include "components/mus/public/cpp/window_observer.h"
+#include "components/mus/public/cpp/window_tracker.h"
#include "components/mus/public/interfaces/window_manager.mojom.h"
#include "mash/session/public/interfaces/session.mojom.h"
+#include "mash/wm/disconnected_app_handler.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace mash {
@@ -22,7 +24,7 @@ namespace wm {
class RootWindowController;
-class WindowManager : public mus::WindowObserver,
+class WindowManager : public mus::WindowTracker,
public mus::WindowManagerDelegate,
public session::mojom::ScreenlockStateListener {
public:
@@ -45,7 +47,6 @@ class WindowManager : public mus::WindowObserver,
// mus::WindowObserver:
void OnTreeChanging(const TreeChangeParams& params) override;
- void OnWindowEmbeddedAppDisconnected(mus::Window* window) override;
// WindowManagerDelegate:
void SetWindowManagerClient(mus::WindowManagerClient* client) override;
@@ -63,6 +64,7 @@ class WindowManager : public mus::WindowObserver,
RootWindowController* root_controller_;
mus::WindowManagerClient* window_manager_client_;
+ DisconnectedAppHandler disconnected_app_handler_;
mojo::Binding<session::mojom::ScreenlockStateListener> binding_;
« no previous file with comments | « mash/wm/root_window_controller.cc ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698