summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 22:51:15 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 22:51:15 +0000
commita4c488fc126b3c02ef8031dea6651d68d96a5e4b (patch)
tree75fc3965849353053bc117a67f33098e41cdca40 /base/gfx
parent481b17eab54d30b7de23db6773cbead01fe25bfc (diff)
downloadchromium_src-a4c488fc126b3c02ef8031dea6651d68d96a5e4b.zip
chromium_src-a4c488fc126b3c02ef8031dea6651d68d96a5e4b.tar.gz
chromium_src-a4c488fc126b3c02ef8031dea6651d68d96a5e4b.tar.bz2
Add native drawing context typedef so that we can cut down on some #ifdefs
Review URL: http://codereview.chromium.org/20093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/native_widget_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/gfx/native_widget_types.h b/base/gfx/native_widget_types.h
index 3d4c046..c45b1a7 100644
--- a/base/gfx/native_widget_types.h
+++ b/base/gfx/native_widget_types.h
@@ -36,6 +36,7 @@
#if defined(OS_WIN)
#include <windows.h>
#elif defined(OS_MACOSX)
+struct CGContext;
#ifdef __OBJC__
@class NSView;
@class NSWindow;
@@ -56,14 +57,17 @@ namespace gfx {
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 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