Index: ui/base/x/x11_util.h |
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h |
index 771e8ef3705359fb276788b27601e7f97053c089..bf89c3bd13297a7f77215b8cbef0c59d98470e24 100644 |
--- a/ui/base/x/x11_util.h |
+++ b/ui/base/x/x11_util.h |
@@ -18,6 +18,7 @@ |
#include "base/basictypes.h" |
#include "ui/base/events.h" |
#include "ui/base/ui_export.h" |
+#include "ui/gfx/point.h" |
typedef unsigned long Atom; |
typedef unsigned long XID; |
@@ -35,6 +36,7 @@ typedef struct _GtkWindow GtkWindow; |
namespace gfx { |
class Rect; |
} |
+class SkBitmap; |
namespace ui { |
@@ -89,6 +91,11 @@ UI_EXPORT void RefCustomXCursor(::Cursor cursor); |
// Decreases the refcount of the custom cursor, and destroys it if it reaches 0. |
UI_EXPORT void UnrefCustomXCursor(::Cursor cursor); |
+ |
+// Creates a XcursorImage and copies the SkBitmap |bitmap| on it. |bitmap| |
+// should be non-null. Caller owns the returned object. |
+UI_EXPORT XcursorImage* SkBitmapToXcursorImage(const SkBitmap* bitmap, |
+ const gfx::Point& hotspot); |
#endif |
// These functions do not cache their results -------------------------- |