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

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

Issue 2759933007: [mus]Add FrameGenerator::SetHighContrastMode(bool) (Closed)
Patch Set: Created 3 years, 9 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
« services/ui/ws/frame_generator_unittest.cc ('K') | « services/ui/ws/test_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index a1a67187ffb9ada208d3a6b522edd8f6c0aed92e..192f754d20796ce58949ef07b049159965e0da0e 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -285,6 +285,12 @@ void WindowServer::SetHighContrastMode(const UserId& user, bool enabled) {
if (IsUserInHighContrastMode(user) == enabled)
return;
high_contrast_mode_[user] = enabled;
+
+ if (user == user_id_tracker_.active_id()) {
+ // Propagate the change to all Displays so that FrameGenerators start
+ // requesting BeginFrames.
+ display_manager_->SetHighContrastMode(enabled);
+ }
}
uint32_t WindowServer::GenerateWindowManagerChangeId(
« services/ui/ws/frame_generator_unittest.cc ('K') | « services/ui/ws/test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698