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

Unified Diff: ui/aura/client/cursor_client.h

Issue 92413002: Cursor state should be global for all CursorManagers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 7 years 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
« no previous file with comments | « ash/wm/ash_native_cursor_manager.cc ('k') | ui/aura/test/test_cursor_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/cursor_client.h
diff --git a/ui/aura/client/cursor_client.h b/ui/aura/client/cursor_client.h
index e8740ac1704bea81a919d8e7eb9dc85695a77675..4e45ddad2442b624ee51a87c5ce976485125215a 100644
--- a/ui/aura/client/cursor_client.h
+++ b/ui/aura/client/cursor_client.h
@@ -25,6 +25,9 @@ class AURA_EXPORT CursorClient {
// Notes that |window| has requested the change to |cursor|.
virtual void SetCursor(gfx::NativeCursor cursor) = 0;
+ // Returns the current cursor.
+ virtual gfx::NativeCursor GetCursor() const = 0;
+
// Shows the cursor. This does not take effect When mouse events are disabled.
virtual void ShowCursor() = 0;
@@ -35,9 +38,15 @@ class AURA_EXPORT CursorClient {
// Sets the scale of the mouse cursor icon.
virtual void SetScale(float scale) = 0;
+ // Returns the current scale of the mouse cursor icon.
+ virtual float GetScale() const = 0;
+
// Sets the type of the mouse cursor icon.
virtual void SetCursorSet(ui::CursorSetType cursor_set) = 0;
+ // Gets the type of the mouse cursor icon.
+ virtual ui::CursorSetType GetCursorSet() const = 0;
+
// Gets whether the cursor is visible.
virtual bool IsCursorVisible() const = 0;
« no previous file with comments | « ash/wm/ash_native_cursor_manager.cc ('k') | ui/aura/test/test_cursor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698