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

Unified Diff: webkit/glue/webcursor.h

Issue 10916253: Support custom cursors for windowless plugins on Windows Aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | webkit/glue/webcursor.cc » ('j') | webkit/glue/webcursor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webcursor.h
===================================================================
--- webkit/glue/webcursor.h (revision 156090)
+++ webkit/glue/webcursor.h (working copy)
@@ -71,6 +71,13 @@
// Returns a native cursor representing the current WebCursor instance.
gfx::NativeCursor GetNativeCursor();
+#if defined(OS_WIN)
+ // Initialize this from the given Windows cursor. The caller must ensure that
+ // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon
+ // APIs on it.
+ void InitFromExternalCursor(HCURSOR handle);
+#endif
+
#if defined(USE_AURA)
const ui::PlatformCursor GetPlatformCursor();
@@ -81,11 +88,6 @@
// with the WebCursor instance.
HCURSOR GetCursor(HINSTANCE module_handle);
- // Initialize this from the given Windows cursor. The caller must ensure that
- // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon
- // APIs on it.
- void InitFromExternalCursor(HCURSOR handle);
-
#elif defined(TOOLKIT_GTK)
// Return the stock GdkCursorType for this cursor, or GDK_CURSOR_IS_PIXMAP
// if it's a custom cursor. Return GDK_LAST_CURSOR to indicate that the cursor
@@ -147,14 +149,17 @@
gfx::Size custom_size_;
std::vector<char> custom_data_;
+#if defined(OS_WIN)
+ // An externally generated HCURSOR. We assume that it remains valid, i.e we
+ // don't attempt to copy the HCURSOR.
+ HCURSOR external_cursor_;
+#endif
+
#if defined(USE_AURA) && defined(USE_X11)
// Only used for custom cursors.
ui::PlatformCursor platform_cursor_;
float scale_factor_;
#elif defined(OS_WIN)
- // An externally generated HCURSOR. We assume that it remains valid, i.e we
- // don't attempt to copy the HCURSOR.
- HCURSOR external_cursor_;
// A custom cursor created from custom bitmap data by Webkit.
HCURSOR custom_cursor_;
#elif defined(TOOLKIT_GTK)
« no previous file with comments | « no previous file | webkit/glue/webcursor.cc » ('j') | webkit/glue/webcursor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698