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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2515233004: Make OnWmDisplayRemoved() take a WindowTreeHost (Closed)
Patch Set: 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 | « ui/aura/mus/window_manager_delegate.h ('k') | ui/aura/test/aura_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index eff5c9d1abd81ee49dc4eb1ad21a38655a68cea8..8b0e9f8fc8d549960ef0a49655b2abce31eac246 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1301,15 +1301,15 @@ void WindowTreeClient::WmNewDisplayAdded(const display::Display& display,
void WindowTreeClient::WmDisplayRemoved(int64_t display_id) {
DCHECK(window_manager_delegate_);
- // TODO: route to WindowTreeHost.
- /*
- for (Window* root : roots_) {
- if (root->display_id() == display_id) {
- window_manager_delegate_->OnWmDisplayRemoved(root);
+ for (WindowMus* root : roots_) {
+ DCHECK(root->GetWindow()->GetHost());
+ WindowTreeHostMus* window_tree_host =
+ static_cast<WindowTreeHostMus*>(root->GetWindow()->GetHost());
+ if (window_tree_host->display_id() == display_id) {
+ window_manager_delegate_->OnWmDisplayRemoved(window_tree_host);
return;
}
}
- */
}
void WindowTreeClient::WmDisplayModified(const display::Display& display) {
« no previous file with comments | « ui/aura/mus/window_manager_delegate.h ('k') | ui/aura/test/aura_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698