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

Unified Diff: ui/aura/root_window.h

Issue 9463003: aura-x11: Add custom web cursor support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x custom cursor cache Created 8 years, 10 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: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index c84d6977dfc48b3897799e1cf222749690cae16e..229e5a72f34caf54f1b4ff4cd1942a274e3543ae 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -83,9 +83,14 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Sets the currently-displayed cursor. If the cursor was previously hidden
// via ShowCursor(false), it will remain hidden until ShowCursor(true) is
// called, at which point the cursor that was last set via SetCursor() will be
- // used.
+ // used. If the cursor type is kCursorCustom, then the caller has to call
Daniel Erat 2012/02/24 21:04:36 how about: // To set a custom cursor, use SetCust
sadrul 2012/02/24 22:48:49 Done.
+ // SetCustomCursor instead to have the custom cursor displayed.
void SetCursor(gfx::NativeCursor cursor);
+ // Sets a custom cursor for the display. This interacts with ShowCursor the
+ // same as SetCursor (see above).
+ void SetCustomCursor(const gfx::PlatformCursor& cursor);
+
// Shows or hides the cursor.
void ShowCursor(bool show);

Powered by Google App Engine
This is Rietveld 408576698