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

Unified Diff: base/gfx/native_widget_types.h

Issue 42056: Basic windowless plugins, try 2. (Closed)
Patch Set: review comments Created 11 years, 9 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 | skia/ext/bitmap_platform_device_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/native_widget_types.h
diff --git a/base/gfx/native_widget_types.h b/base/gfx/native_widget_types.h
index c45b1a798a2d1d7b72e131a01f561a8849e3fd8e..32d601220d5b7334681bb04ca870b1c8779c0b08 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
« no previous file with comments | « no previous file | skia/ext/bitmap_platform_device_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698