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

Unified Diff: ash/display/window_tree_host_manager.cc

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: feedback Created 3 years, 11 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/display/window_tree_host_manager.h ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager.cc
diff --git a/ash/display/window_tree_host_manager.cc b/ash/display/window_tree_host_manager.cc
index f051cacaf7fe12a5d2819a8fc5954c5e646789a2..ec5943a8391666d1afac23c51236e1c8f045c200 100644
--- a/ash/display/window_tree_host_manager.cc
+++ b/ash/display/window_tree_host_manager.cc
@@ -356,22 +356,6 @@ AshWindowTreeHost* WindowTreeHostManager::GetAshWindowTreeHostForDisplayId(
return host == window_tree_hosts_.end() ? nullptr : host->second;
}
-void WindowTreeHostManager::CloseChildWindows() {
- for (WindowTreeHostMap::const_iterator it = window_tree_hosts_.begin();
- it != window_tree_hosts_.end(); ++it) {
- aura::Window* root_window = GetWindow(it->second);
- RootWindowController* controller = GetRootWindowController(root_window);
- if (controller) {
- controller->CloseChildWindows();
- } else {
- while (!root_window->children().empty()) {
- aura::Window* child = root_window->children()[0];
- delete child;
- }
- }
- }
-}
-
aura::Window::Windows WindowTreeHostManager::GetAllRootWindows() {
aura::Window::Windows windows;
for (WindowTreeHostMap::const_iterator it = window_tree_hosts_.begin();
« no previous file with comments | « ash/display/window_tree_host_manager.h ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698