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

Side by Side Diff: ui/gfx/native_widget_types.h

Issue 7978008: Declare native types for Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_ 5 #ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_
6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_ 6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 typedef struct _GdkRegion GdkRegion; 74 typedef struct _GdkRegion GdkRegion;
75 #elif defined(TOOLKIT_USES_GTK) 75 #elif defined(TOOLKIT_USES_GTK)
76 typedef struct _PangoFontDescription PangoFontDescription; 76 typedef struct _PangoFontDescription PangoFontDescription;
77 typedef struct _GdkCursor GdkCursor; 77 typedef struct _GdkCursor GdkCursor;
78 typedef struct _GdkPixbuf GdkPixbuf; 78 typedef struct _GdkPixbuf GdkPixbuf;
79 typedef struct _GdkRegion GdkRegion; 79 typedef struct _GdkRegion GdkRegion;
80 typedef struct _GtkWidget GtkWidget; 80 typedef struct _GtkWidget GtkWidget;
81 typedef struct _GtkWindow GtkWindow; 81 typedef struct _GtkWindow GtkWindow;
82 typedef struct _cairo cairo_t; 82 typedef struct _cairo cairo_t;
83 #elif defined(OS_ANDROID)
84 class ChromeView;
83 #endif 85 #endif
84 class SkBitmap; 86 class SkBitmap;
85 87
86 namespace gfx { 88 namespace gfx {
87 89
88 #if defined(USE_AURA) 90 #if defined(USE_AURA)
89 typedef aura::Window* NativeView; 91 typedef aura::Window* NativeView;
90 typedef aura::Window* NativeWindow; 92 typedef aura::Window* NativeWindow;
91 #elif defined(OS_WIN) 93 #elif defined(OS_WIN)
92 typedef HWND NativeView; 94 typedef HWND NativeView;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 typedef GdkRegion* NativeRegion; 130 typedef GdkRegion* NativeRegion;
129 typedef void* NativeViewAccessible; 131 typedef void* NativeViewAccessible;
130 #elif defined(USE_X11) 132 #elif defined(USE_X11)
131 typedef PangoFontDescription* NativeFont; 133 typedef PangoFontDescription* NativeFont;
132 typedef GtkWidget* NativeEditView; 134 typedef GtkWidget* NativeEditView;
133 typedef cairo_t* NativeDrawingContext; 135 typedef cairo_t* NativeDrawingContext;
134 typedef GdkCursor* NativeCursor; 136 typedef GdkCursor* NativeCursor;
135 typedef GtkWidget* NativeMenu; 137 typedef GtkWidget* NativeMenu;
136 typedef GdkRegion* NativeRegion; 138 typedef GdkRegion* NativeRegion;
137 typedef void* NativeViewAccessible; 139 typedef void* NativeViewAccessible;
140 #elif defined(OS_ANDROID)
141 typedef void* NativeFont;
142 typedef ChromeView* NativeView;
143 typedef ChromeView* NativeWindow;
144 typedef void* NativeEditView;
145 typedef void* NativeDrawingContext;
146 typedef void* NativeCursor;
147 typedef void* NativeMenu;
148 typedef void* NativeViewAccessible;
138 #endif 149 #endif
139 150
140 #if defined(OS_MACOSX) 151 #if defined(OS_MACOSX)
141 typedef NSImage NativeImageType; 152 typedef NSImage NativeImageType;
142 #elif defined(TOOLKIT_GTK) 153 #elif defined(TOOLKIT_GTK)
143 typedef GdkPixbuf NativeImageType; 154 typedef GdkPixbuf NativeImageType;
144 #else 155 #else
145 typedef SkBitmap NativeImageType; 156 typedef SkBitmap NativeImageType;
146 #endif 157 #endif
147 typedef NativeImageType* NativeImage; 158 typedef NativeImageType* NativeImage;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 typedef unsigned long AcceleratedWidget; 226 typedef unsigned long AcceleratedWidget;
216 const AcceleratedWidget kNullAcceleratedWidget = 0; 227 const AcceleratedWidget kNullAcceleratedWidget = 0;
217 #else 228 #else
218 typedef void* AcceleratedWidget; 229 typedef void* AcceleratedWidget;
219 const AcceleratedWidget kNullAcceleratedWidget = NULL; 230 const AcceleratedWidget kNullAcceleratedWidget = NULL;
220 #endif 231 #endif
221 232
222 } // namespace gfx 233 } // namespace gfx
223 234
224 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 235 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« 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