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

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

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: early return -> braces and comment Created 3 years, 7 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_manager_state.h
diff --git a/services/ui/ws/window_manager_state.h b/services/ui/ws/window_manager_state.h
index 502e535e035455303fdb815ec91f248961e1d64a..ce897244a81ee49e82e48e4f17faf0a33184868e 100644
--- a/services/ui/ws/window_manager_state.h
+++ b/services/ui/ws/window_manager_state.h
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
#include "services/ui/public/interfaces/display_manager.mojom.h"
+#include "services/ui/ws/cursor_state.h"
#include "services/ui/ws/event_dispatcher.h"
#include "services/ui/ws/event_dispatcher_delegate.h"
#include "services/ui/ws/server_window_observer.h"
@@ -90,6 +91,8 @@ class WindowManagerState : public EventDispatcherDelegate,
// not be exposed.
EventDispatcher* event_dispatcher() { return &event_dispatcher_; }
+ CursorState& cursor_state() { return cursor_state_; }
+
// Returns true if this is the WindowManager of the active user.
bool IsActive() const;
@@ -295,6 +298,9 @@ class WindowManagerState : public EventDispatcherDelegate,
// destroyed.
WindowManagerDisplayRoots orphaned_window_manager_display_roots_;
+ // All state regarding what the current cursor is.
+ CursorState cursor_state_;
+
DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
};

Powered by Google App Engine
This is Rietveld 408576698