summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 22:18:58 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 22:18:58 +0000
commita2d489b22f9e3f361adeaf7a09ae88510a2bb1e3 (patch)
treeff3dd61a3278c60286a820e9f07952e4571743e5 /base/gfx
parent16ead307a2b27b7d02bae66792eaf3c2f904b9c0 (diff)
downloadchromium_src-a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3.zip
chromium_src-a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3.tar.gz
chromium_src-a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3.tar.bz2
Basic windowless plugins, try 2.
In response to Dean's comment on http://codereview.chromium.org/39105, I redid that patch to put the X munging into the plugin implementation. This won't work for multiproc, but it's near the correct place and many things will need to be changed for multiproc. Review URL: http://codereview.chromium.org/42056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/native_widget_types.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/gfx/native_widget_types.h b/base/gfx/native_widget_types.h
index c45b1a7..32d6012 100644
--- a/base/gfx/native_widget_types.h
+++ b/base/gfx/native_widget_types.h
@@ -49,6 +49,7 @@ class NSTextField;
#elif defined(OS_LINUX)
typedef struct _GtkWidget GtkWidget;
typedef struct _GtkWindow GtkWindow;
+typedef struct _cairo_surface cairo_surface_t;
#endif
namespace gfx {
@@ -67,9 +68,7 @@ typedef CGContext* NativeDrawingContext;
typedef GtkWidget* NativeView;
typedef GtkWindow* NativeWindow;
typedef GtkWidget* NativeEditView;
-typedef void *NativeDrawingContext; // TODO(port): update for Gtk
-#else // null port.
-#error No known OS defined
+typedef cairo_surface_t* NativeDrawingContext;
#endif
// Note: for test_shell we're packing a pointer into the NativeViewId. So, if