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

Unified Diff: services/ui/ws/display_manager.cc

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: More fixes. Created 4 years, 2 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/ws/display_manager.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display_manager.cc
diff --git a/services/ui/ws/display_manager.cc b/services/ui/ws/display_manager.cc
index ecc118de3084c2477c9b6ebe1b86f988a9d0afc5..157f8ca4234567c852e69d0b19f8f0fbc15835f0 100644
--- a/services/ui/ws/display_manager.cc
+++ b/services/ui/ws/display_manager.cc
@@ -214,5 +214,13 @@ void DisplayManager::OnDisplayModified(
OnDisplayUpdate(display);
}
+void DisplayManager::OnPrimaryDisplayChanged(int64_t primary_display_id) {
+ // TODO(kylechar): Send IPCs to WM clients first.
+
+ // Send IPCs to any DisplayManagerObservers.
+ for (const auto& pair : user_display_managers_)
+ pair.second->OnPrimaryDisplayChanged(primary_display_id);
+}
+
} // namespace ws
} // namespace ui
« no previous file with comments | « services/ui/ws/display_manager.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698