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

Unified Diff: ash/mus/disconnected_app_handler.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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/bridge/wm_window_mus.cc ('k') | ash/mus/disconnected_app_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/disconnected_app_handler.h
diff --git a/ash/mus/disconnected_app_handler.h b/ash/mus/disconnected_app_handler.h
index dfec2c5ced291b19f5b254da92f7fd9e3afcd093..769cddcb54239d8630acd35c1e9f4484a2ab3e99 100644
--- a/ash/mus/disconnected_app_handler.h
+++ b/ash/mus/disconnected_app_handler.h
@@ -12,15 +12,16 @@ namespace ash {
namespace mus {
// Tracks mus::Windows for when they get disconnected from the embedded app.
-// Currently closes a window upon disconnection.
+// Destroys the window upon disconnection.
class DisconnectedAppHandler : public ::mus::WindowTracker {
public:
- DisconnectedAppHandler();
+ explicit DisconnectedAppHandler(::mus::Window* root_window);
~DisconnectedAppHandler() override;
private:
// mus::WindowObserver:
void OnWindowEmbeddedAppDisconnected(::mus::Window* window) override;
+ void OnTreeChanging(const TreeChangeParams& params) override;
DISALLOW_COPY_AND_ASSIGN(DisconnectedAppHandler);
};
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/disconnected_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698