| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |