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

Unified Diff: mash/wm/disconnected_app_handler.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/BUILD.gn ('k') | mash/wm/disconnected_app_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/disconnected_app_handler.h
diff --git a/mash/wm/disconnected_app_handler.h b/mash/wm/disconnected_app_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..7fb839301de9888eb0f26f7a887d578b6821762b
--- /dev/null
+++ b/mash/wm/disconnected_app_handler.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MASH_WM_DISCONNECTED_APP_HANDLER_H_
+#define MASH_WM_DISCONNECTED_APP_HANDLER_H_
+
+#include "base/macros.h"
+#include "components/mus/public/cpp/window_tracker.h"
+
+namespace mash {
+namespace wm {
+
+// Tracks mus::Windows for when they get disconnected from the embedded app.
+// Currently closes a window upon disconnection.
+class DisconnectedAppHandler : public mus::WindowTracker {
+ public:
+ DisconnectedAppHandler();
+ ~DisconnectedAppHandler() override;
+
+ private:
+ // mus::WindowObserver:
+ void OnWindowEmbeddedAppDisconnected(mus::Window* window) override;
+
+ DISALLOW_COPY_AND_ASSIGN(DisconnectedAppHandler);
+};
+
+} // namespace wm
+} // namespace mash
+
+#endif // MASH_WM_DISCONNECTED_APP_HANDLER_H_
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/disconnected_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698