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

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

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/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 64e421169c6de0173a9972a0a990ae575e5b6df7..89780988a41c557ccc4671f6609d7a6f1d282dc2 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -143,6 +143,9 @@ class WindowServer : public ServerWindowDelegate,
bool SetFocusedWindow(ServerWindow* window);
ServerWindow* GetFocusedWindow();
+ bool IsActiveUserInHighContrastMode() const;
+ void SetHighContrastMode(const UserId& user, bool enabled);
+
// Returns a change id for the window manager that is associated with
// |source| and |client_change_id|. When the window manager replies
// WindowManagerChangeCompleted() is called to obtain the original source
@@ -252,6 +255,8 @@ class WindowServer : public ServerWindowDelegate,
// |window|.
void UpdateNativeCursorIfOver(ServerWindow* window);
+ bool IsUserInHighContrastMode(const UserId& user) const;
+
// Overridden from ServerWindowDelegate:
ui::SurfacesState* GetSurfacesState() override;
void OnScheduleWindowPaint(ServerWindow* window) override;
@@ -333,6 +338,7 @@ class WindowServer : public ServerWindowDelegate,
Operation* current_operation_;
bool in_destructor_;
+ std::map<UserId, bool> high_contrast_mode_;
// Maps from window manager change id to the client that initiated the
// request.

Powered by Google App Engine
This is Rietveld 408576698