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

Unified Diff: services/ui/ws/display.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
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index c1b75ebbacd55c6f4d04348abc32840324559f68..f733e83b6f0414ecf630f81bda5ae94e813fbbd1 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -275,6 +275,10 @@ ServerWindow* Display::GetRootWindow() {
return root_.get();
}
+bool Display::IsInHighContrastMode() {
+ return window_server_->IsActiveUserInHighContrastMode();
+}
+
void Display::OnEvent(const ui::Event& event) {
WindowManagerDisplayRoot* display_root = GetActiveWindowManagerDisplayRoot();
if (display_root)

Powered by Google App Engine
This is Rietveld 408576698