| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 typedef HDC NativeDrawingContext; | 140 typedef HDC NativeDrawingContext; |
| 141 typedef IAccessible* NativeViewAccessible; | 141 typedef IAccessible* NativeViewAccessible; |
| 142 #elif defined(OS_IOS) | 142 #elif defined(OS_IOS) |
| 143 typedef UIFont* NativeFont; | 143 typedef UIFont* NativeFont; |
| 144 typedef UITextField* NativeEditView; | 144 typedef UITextField* NativeEditView; |
| 145 typedef CGContext* NativeDrawingContext; | 145 typedef CGContext* NativeDrawingContext; |
| 146 #elif defined(OS_MACOSX) | 146 #elif defined(OS_MACOSX) |
| 147 typedef NSFont* NativeFont; | 147 typedef NSFont* NativeFont; |
| 148 typedef NSTextField* NativeEditView; | 148 typedef NSTextField* NativeEditView; |
| 149 typedef CGContext* NativeDrawingContext; | 149 typedef CGContext* NativeDrawingContext; |
| 150 #ifdef __OBJC__ |
| 151 typedef id NativeViewAccessible; |
| 152 #else |
| 150 typedef void* NativeViewAccessible; | 153 typedef void* NativeViewAccessible; |
| 154 #endif |
| 151 #elif defined(USE_CAIRO) | 155 #elif defined(USE_CAIRO) |
| 152 typedef PangoFontDescription* NativeFont; | 156 typedef PangoFontDescription* NativeFont; |
| 153 typedef void* NativeEditView; | 157 typedef void* NativeEditView; |
| 154 typedef cairo_t* NativeDrawingContext; | 158 typedef cairo_t* NativeDrawingContext; |
| 155 typedef void* NativeViewAccessible; | 159 typedef void* NativeViewAccessible; |
| 156 #else | 160 #else |
| 157 typedef void* NativeFont; | 161 typedef void* NativeFont; |
| 158 typedef void* NativeEditView; | 162 typedef void* NativeEditView; |
| 159 typedef void* NativeDrawingContext; | 163 typedef void* NativeDrawingContext; |
| 160 typedef void* NativeViewAccessible; | 164 typedef void* NativeViewAccessible; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 #elif defined(USE_OZONE) | 260 #elif defined(USE_OZONE) |
| 257 typedef intptr_t AcceleratedWidget; | 261 typedef intptr_t AcceleratedWidget; |
| 258 const AcceleratedWidget kNullAcceleratedWidget = 0; | 262 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 259 #else | 263 #else |
| 260 #error unknown platform | 264 #error unknown platform |
| 261 #endif | 265 #endif |
| 262 | 266 |
| 263 } // namespace gfx | 267 } // namespace gfx |
| 264 | 268 |
| 265 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 269 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |