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

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: . 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..53854faaf11963b2f731fba780cac856cb084d80 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -83,9 +83,16 @@ 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
+ // SetCustomCursor instead to have the custom cursor displayed.
void SetCursor(gfx::NativeCursor cursor);
+ // Sets a custom cursor for the display. If the cursor was previously hidden
+ // via ShowCursor(false), it will remain hidden. However, once
+ // ShowCursor(true) is called, this custom cursor will not be used until an
+ // explicit call to SetCustomCursor is made.
Daniel Erat 2012/02/24 17:17:12 these semantics seem odd to me. what about making
sadrul 2012/02/24 17:38:19 My concern is that by the time ShowCursor gets cal
Daniel Erat 2012/02/24 18:05:47 At least the X case, I think that the underlying c
sadrul 2012/02/24 18:30:53 I considered doing that at one point, but that see
sadrul 2012/02/24 19:46:30 Went ahead and did the caching (not too much work!
+ void SetCustomCursor(const gfx::PlatformCursor& cursor);
+
// Shows or hides the cursor.
void ShowCursor(bool show);

Powered by Google App Engine
This is Rietveld 408576698