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

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

Issue 59133008: ozone: Support building without cairo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & fix whitespace Created 7 years, 1 month 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 | « ui/gfx/image/image_unittest.cc ('k') | 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) 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 #elif defined(OS_MACOSX) 164 #elif defined(OS_MACOSX)
165 typedef NSFont* NativeFont; 165 typedef NSFont* NativeFont;
166 typedef NSTextField* NativeEditView; 166 typedef NSTextField* NativeEditView;
167 typedef CGContext* NativeDrawingContext; 167 typedef CGContext* NativeDrawingContext;
168 typedef void* NativeViewAccessible; 168 typedef void* NativeViewAccessible;
169 #elif defined(TOOLKIT_GTK) 169 #elif defined(TOOLKIT_GTK)
170 typedef PangoFontDescription* NativeFont; 170 typedef PangoFontDescription* NativeFont;
171 typedef GtkWidget* NativeEditView; 171 typedef GtkWidget* NativeEditView;
172 typedef cairo_t* NativeDrawingContext; 172 typedef cairo_t* NativeDrawingContext;
173 typedef void* NativeViewAccessible; 173 typedef void* NativeViewAccessible;
174 #elif defined(USE_AURA) 174 #elif defined(USE_CAIRO)
175 typedef PangoFontDescription* NativeFont; 175 typedef PangoFontDescription* NativeFont;
176 typedef void* NativeEditView; 176 typedef void* NativeEditView;
177 typedef cairo_t* NativeDrawingContext; 177 typedef cairo_t* NativeDrawingContext;
178 typedef void* NativeViewAccessible; 178 typedef void* NativeViewAccessible;
179 #elif defined(OS_ANDROID) 179 #else
180 typedef void* NativeFont; 180 typedef void* NativeFont;
181 typedef void* NativeEditView; 181 typedef void* NativeEditView;
182 typedef void* NativeDrawingContext; 182 typedef void* NativeDrawingContext;
183 typedef void* NativeViewAccessible; 183 typedef void* NativeViewAccessible;
184 #endif 184 #endif
185 185
186 // A constant value to indicate that gfx::NativeCursor refers to no cursor. 186 // A constant value to indicate that gfx::NativeCursor refers to no cursor.
187 #if defined(USE_AURA) 187 #if defined(USE_AURA)
188 const int kNullCursor = 0; 188 const int kNullCursor = 0;
189 #else 189 #else
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 #elif defined(USE_OZONE) 320 #elif defined(USE_OZONE)
321 typedef intptr_t AcceleratedWidget; 321 typedef intptr_t AcceleratedWidget;
322 const AcceleratedWidget kNullAcceleratedWidget = 0; 322 const AcceleratedWidget kNullAcceleratedWidget = 0;
323 #else 323 #else
324 #error unknown platform 324 #error unknown platform
325 #endif 325 #endif
326 326
327 } // namespace gfx 327 } // namespace gfx
328 328
329 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 329 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/image_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698