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

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

Issue 1518073002: More build config cleanup. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ERROR, not FATAL Created 5 years 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
« no previous file with comments | « skia/ext/platform_device.h ('k') | ui/gl/sync_control_vsync_provider.cc » ('j') | 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 typedef NSTextField* NativeEditView; 156 typedef NSTextField* NativeEditView;
157 typedef CGContext* NativeDrawingContext; 157 typedef CGContext* NativeDrawingContext;
158 #ifdef __OBJC__ 158 #ifdef __OBJC__
159 typedef id NativeViewAccessible; 159 typedef id NativeViewAccessible;
160 #else 160 #else
161 typedef void* NativeViewAccessible; 161 typedef void* NativeViewAccessible;
162 #endif // __OBJC__ 162 #endif // __OBJC__
163 #else // Android, Linux, Chrome OS, etc. 163 #else // Android, Linux, Chrome OS, etc.
164 // Linux doesn't have a native font type. 164 // Linux doesn't have a native font type.
165 typedef void* NativeEditView; 165 typedef void* NativeEditView;
166 #if defined(USE_CAIRO)
167 typedef cairo_t* NativeDrawingContext;
168 #else
169 typedef void* NativeDrawingContext; 166 typedef void* NativeDrawingContext;
170 #endif // defined(USE_CAIRO)
171 #if defined(USE_X11) && !defined(OS_CHROMEOS) 167 #if defined(USE_X11) && !defined(OS_CHROMEOS)
172 typedef AtkObject* NativeViewAccessible; 168 typedef AtkObject* NativeViewAccessible;
173 #else 169 #else
174 typedef void* NativeViewAccessible; 170 typedef void* NativeViewAccessible;
175 #endif 171 #endif
176 #endif 172 #endif
177 173
178 // A constant value to indicate that gfx::NativeCursor refers to no cursor. 174 // A constant value to indicate that gfx::NativeCursor refers to no cursor.
179 #if defined(OS_LINUX) 175 #if defined(OS_LINUX)
180 const int kNullCursor = 0; 176 const int kNullCursor = 0;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 #elif defined(OS_MACOSX) 271 #elif defined(OS_MACOSX)
276 typedef uintptr_t AcceleratedWidget; 272 typedef uintptr_t AcceleratedWidget;
277 const AcceleratedWidget kNullAcceleratedWidget = 0; 273 const AcceleratedWidget kNullAcceleratedWidget = 0;
278 #else 274 #else
279 #error unknown platform 275 #error unknown platform
280 #endif 276 #endif
281 277
282 } // namespace gfx 278 } // namespace gfx
283 279
284 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 280 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « skia/ext/platform_device.h ('k') | ui/gl/sync_control_vsync_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698