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

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

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 class NSImage; 91 class NSImage;
92 struct NSView; 92 struct NSView;
93 class NSWindow; 93 class NSWindow;
94 class NSTextField; 94 class NSTextField;
95 #endif // __OBJC__ 95 #endif // __OBJC__
96 #elif defined(OS_POSIX) 96 #elif defined(OS_POSIX)
97 typedef struct _PangoFontDescription PangoFontDescription; 97 typedef struct _PangoFontDescription PangoFontDescription;
98 typedef struct _cairo cairo_t; 98 typedef struct _cairo cairo_t;
99 #endif 99 #endif
100 100
101 #if defined(TOOLKIT_GTK) 101 #if defined(OS_ANDROID)
102 typedef struct _GdkCursor GdkCursor;
103 typedef union _GdkEvent GdkEvent;
104 typedef struct _GdkPixbuf GdkPixbuf;
105 typedef struct _GdkRegion GdkRegion;
106 typedef struct _GtkWidget GtkWidget;
107 typedef struct _GtkWindow GtkWindow;
108 #elif defined(OS_ANDROID)
109 struct ANativeWindow; 102 struct ANativeWindow;
110 namespace ui { 103 namespace ui {
111 class WindowAndroid; 104 class WindowAndroid;
112 class ViewAndroid; 105 class ViewAndroid;
113 } 106 }
114 #endif 107 #endif
115 class SkBitmap; 108 class SkBitmap;
116 109
117 namespace gfx { 110 namespace gfx {
118 111
119 #if defined(USE_AURA) 112 #if defined(USE_AURA)
120 typedef ui::Cursor NativeCursor; 113 typedef ui::Cursor NativeCursor;
121 typedef aura::Window* NativeView; 114 typedef aura::Window* NativeView;
122 typedef aura::Window* NativeWindow; 115 typedef aura::Window* NativeWindow;
123 typedef SkRegion* NativeRegion; 116 typedef SkRegion* NativeRegion;
124 typedef ui::Event* NativeEvent; 117 typedef ui::Event* NativeEvent;
125 #elif defined(OS_IOS) 118 #elif defined(OS_IOS)
126 typedef void* NativeCursor; 119 typedef void* NativeCursor;
127 typedef UIView* NativeView; 120 typedef UIView* NativeView;
128 typedef UIWindow* NativeWindow; 121 typedef UIWindow* NativeWindow;
129 typedef UIEvent* NativeEvent; 122 typedef UIEvent* NativeEvent;
130 #elif defined(OS_MACOSX) 123 #elif defined(OS_MACOSX)
131 typedef NSCursor* NativeCursor; 124 typedef NSCursor* NativeCursor;
132 typedef NSView* NativeView; 125 typedef NSView* NativeView;
133 typedef NSWindow* NativeWindow; 126 typedef NSWindow* NativeWindow;
134 typedef NSEvent* NativeEvent; 127 typedef NSEvent* NativeEvent;
135 #elif defined(TOOLKIT_GTK)
136 typedef GdkCursor* NativeCursor;
137 typedef GtkWidget* NativeView;
138 typedef GtkWindow* NativeWindow;
139 typedef GdkRegion* NativeRegion;
140 typedef GdkEvent* NativeEvent;
141 #elif defined(OS_ANDROID) 128 #elif defined(OS_ANDROID)
142 typedef void* NativeCursor; 129 typedef void* NativeCursor;
143 typedef ui::ViewAndroid* NativeView; 130 typedef ui::ViewAndroid* NativeView;
144 typedef ui::WindowAndroid* NativeWindow; 131 typedef ui::WindowAndroid* NativeWindow;
145 typedef void* NativeRegion; 132 typedef void* NativeRegion;
146 typedef jobject NativeEvent; 133 typedef jobject NativeEvent;
147 #endif 134 #endif
148 135
149 #if defined(OS_WIN) 136 #if defined(OS_WIN)
150 typedef HFONT NativeFont; 137 typedef HFONT NativeFont;
151 typedef HWND NativeEditView; 138 typedef HWND NativeEditView;
152 typedef HDC NativeDrawingContext; 139 typedef HDC NativeDrawingContext;
153 typedef IAccessible* NativeViewAccessible; 140 typedef IAccessible* NativeViewAccessible;
154 #elif defined(OS_IOS) 141 #elif defined(OS_IOS)
155 typedef UIFont* NativeFont; 142 typedef UIFont* NativeFont;
156 typedef UITextField* NativeEditView; 143 typedef UITextField* NativeEditView;
157 typedef CGContext* NativeDrawingContext; 144 typedef CGContext* NativeDrawingContext;
158 #elif defined(OS_MACOSX) 145 #elif defined(OS_MACOSX)
159 typedef NSFont* NativeFont; 146 typedef NSFont* NativeFont;
160 typedef NSTextField* NativeEditView; 147 typedef NSTextField* NativeEditView;
161 typedef CGContext* NativeDrawingContext; 148 typedef CGContext* NativeDrawingContext;
162 typedef void* NativeViewAccessible; 149 typedef void* NativeViewAccessible;
163 #elif defined(TOOLKIT_GTK)
164 typedef PangoFontDescription* NativeFont;
165 typedef GtkWidget* NativeEditView;
166 typedef cairo_t* NativeDrawingContext;
167 typedef void* NativeViewAccessible;
168 #elif defined(USE_CAIRO) 150 #elif defined(USE_CAIRO)
169 typedef PangoFontDescription* NativeFont; 151 typedef PangoFontDescription* NativeFont;
170 typedef void* NativeEditView; 152 typedef void* NativeEditView;
171 typedef cairo_t* NativeDrawingContext; 153 typedef cairo_t* NativeDrawingContext;
172 typedef void* NativeViewAccessible; 154 typedef void* NativeViewAccessible;
173 #else 155 #else
174 typedef void* NativeFont; 156 typedef void* NativeFont;
175 typedef void* NativeEditView; 157 typedef void* NativeEditView;
176 typedef void* NativeDrawingContext; 158 typedef void* NativeDrawingContext;
177 typedef void* NativeViewAccessible; 159 typedef void* NativeViewAccessible;
178 #endif 160 #endif
179 161
180 // A constant value to indicate that gfx::NativeCursor refers to no cursor. 162 // A constant value to indicate that gfx::NativeCursor refers to no cursor.
181 #if defined(USE_AURA) 163 #if defined(USE_AURA)
182 const int kNullCursor = 0; 164 const int kNullCursor = 0;
183 #else 165 #else
184 const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL); 166 const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL);
185 #endif 167 #endif
186 168
187 #if defined(OS_IOS) 169 #if defined(OS_IOS)
188 typedef UIImage NativeImageType; 170 typedef UIImage NativeImageType;
189 #elif defined(OS_MACOSX) 171 #elif defined(OS_MACOSX)
190 typedef NSImage NativeImageType; 172 typedef NSImage NativeImageType;
191 #elif defined(TOOLKIT_GTK)
192 typedef GdkPixbuf NativeImageType;
193 #else 173 #else
194 typedef SkBitmap NativeImageType; 174 typedef SkBitmap NativeImageType;
195 #endif 175 #endif
196 typedef NativeImageType* NativeImage; 176 typedef NativeImageType* NativeImage;
197 177
198 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if 178 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if
199 // you make it a type which is smaller than a pointer, you have to fix 179 // you make it a type which is smaller than a pointer, you have to fix
200 // test_shell. 180 // test_shell.
201 // 181 //
202 // See comment at the top of the file for usage. 182 // See comment at the top of the file for usage.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 #elif defined(USE_OZONE) 255 #elif defined(USE_OZONE)
276 typedef intptr_t AcceleratedWidget; 256 typedef intptr_t AcceleratedWidget;
277 const AcceleratedWidget kNullAcceleratedWidget = 0; 257 const AcceleratedWidget kNullAcceleratedWidget = 0;
278 #else 258 #else
279 #error unknown platform 259 #error unknown platform
280 #endif 260 #endif
281 261
282 } // namespace gfx 262 } // namespace gfx
283 263
284 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 264 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698