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

Unified Diff: services/ui/public/cpp/window_tree_client.cc

Issue 2346253004: Makes display roots be destroyed by client (Closed)
Patch Set: cleanup Created 4 years, 3 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 | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index 0b6a5f2757601d944e5146ab6cb9c6cb4542bb02..fc9ec0c3589ea32b6d8e12d556abd7de236bc16c 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -1223,6 +1223,17 @@ void WindowTreeClient::WmNewDisplayAdded(const display::Display& display,
WmNewDisplayAddedImpl(display, std::move(root_data), parent_drawn);
}
+void WindowTreeClient::WmDisplayRemoved(int64_t display_id) {
+ DCHECK(window_manager_delegate_);
+
+ for (Window* root : roots_) {
+ if (root->display_id() == display_id) {
+ window_manager_delegate_->OnWmDisplayRemoved(root);
+ return;
+ }
+ }
+}
+
void WindowTreeClient::WmSetBounds(uint32_t change_id,
Id window_id,
const gfx::Rect& transit_bounds) {
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698