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

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

Issue 2127383003: mus: Introduce high-contrast mode in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/accessibility_manager.cc ('K') | « services/ui/ws/window_server.h ('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 15108818cb839b6e1daa8717e7dae6adbd21a6e0..c2d7910e65ccd2e059060cd812eacfd3b39c0861 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -282,6 +282,16 @@ ServerWindow* WindowServer::GetFocusedWindow() {
return nullptr;
}
+void WindowServer::SetHighContrastMode(bool enabled) {
+ if (is_in_high_contrast_mode_ == enabled)
+ return;
+ is_in_high_contrast_mode_ = enabled;
+ for (Display* display : display_manager_->displays()) {
+ display->SchedulePaint(display->root_window(),
+ gfx::Rect(display->root_window()->bounds().size()));
+ }
+}
+
uint32_t WindowServer::GenerateWindowManagerChangeId(
WindowTree* source,
uint32_t client_change_id) {
« services/ui/ws/accessibility_manager.cc ('K') | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698