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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.h

Issue 2473233005: Wires up transients for DesktopWindowTreeHostMus (Closed)
Patch Set: super nitty nits Created 4 years, 1 month 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 | « no previous file | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.h
diff --git a/ui/views/mus/desktop_window_tree_host_mus.h b/ui/views/mus/desktop_window_tree_host_mus.h
index da57ad174e76601cf00d789aa0da146344389244..9893ed613458b6f24754756e6b0c6395ed8b60cf 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.h
+++ b/ui/views/mus/desktop_window_tree_host_mus.h
@@ -6,6 +6,7 @@
#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
#include <memory>
+#include <set>
#include "base/macros.h"
#include "ui/aura/mus/window_tree_host_mus.h"
@@ -95,6 +96,11 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
// fullscreen.
ui::WindowShowState fullscreen_restore_state_;
+ // We can optionally have a parent which can order us to close, or own
+ // children who we're responsible for closing when we CloseNow().
+ DesktopWindowTreeHostMus* parent_ = nullptr;
+ std::set<DesktopWindowTreeHostMus*> children_;
+
// Used so that Close() isn't immediate.
base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
« no previous file with comments | « no previous file | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698