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

Unified Diff: base/gfx/native_widget_types.h

Issue 20093: Add native drawing context typedef so that we can cut down on some #ifdefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/native_widget_types.h
===================================================================
--- base/gfx/native_widget_types.h (revision 9220)
+++ base/gfx/native_widget_types.h (working copy)
@@ -56,14 +56,17 @@
typedef HWND NativeView;
typedef HWND NativeWindow;
typedef HWND NativeEditView;
+typedef HDC NativeDrawingContext;
#elif defined(OS_MACOSX)
typedef NSView* NativeView;
typedef NSWindow* NativeWindow;
typedef NSTextField* NativeEditView;
+typedef struct CGContext* NativeDrawingContext;
#elif defined(OS_LINUX)
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
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698