summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 06:40:42 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 06:40:42 +0000
commit9abf8dd6daf601bd5215f612fd530ca009c2e5bd (patch)
treedb13bad567f4803dce769b316713509e0cc96083 /base/gfx
parent926049f2fee49ce29144c9456112b4199fdb23e7 (diff)
downloadchromium_src-9abf8dd6daf601bd5215f612fd530ca009c2e5bd.zip
chromium_src-9abf8dd6daf601bd5215f612fd530ca009c2e5bd.tar.gz
chromium_src-9abf8dd6daf601bd5215f612fd530ca009c2e5bd.tar.bz2
Replace HCURSOR usage in views::View with a new gfx::NativeCursor type that also supports GdkCursor*, and wires this up with the existing implementors of the GetCursorForPoint method.
This allows us to get rid of one of the most annoying NOTIMPLEMENTED()s in views-gtk. BUG=none TEST=none Review URL: http://codereview.chromium.org/119150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/native_widget_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/gfx/native_widget_types.h b/base/gfx/native_widget_types.h
index d43db5c..4c9f000 100644
--- a/base/gfx/native_widget_types.h
+++ b/base/gfx/native_widget_types.h
@@ -47,6 +47,7 @@ class NSWindow;
class NSTextField;
#endif // __OBJC__
#elif defined(OS_LINUX)
+typedef struct _GdkCursor GdkCursor;
typedef struct _GtkWidget GtkWidget;
typedef struct _GtkWindow GtkWindow;
typedef struct _cairo_surface cairo_surface_t;
@@ -59,6 +60,7 @@ typedef HWND NativeView;
typedef HWND NativeWindow;
typedef HWND NativeEditView;
typedef HDC NativeDrawingContext;
+typedef HCURSOR NativeCursor;
#elif defined(OS_MACOSX)
typedef NSView* NativeView;
typedef NSWindow* NativeWindow;
@@ -69,6 +71,7 @@ typedef GtkWidget* NativeView;
typedef GtkWindow* NativeWindow;
typedef GtkWidget* NativeEditView;
typedef cairo_surface_t* NativeDrawingContext;
+typedef GdkCursor* NativeCursor;
#endif
// Note: for test_shell we're packing a pointer into the NativeViewId. So, if