| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 #if defined(OS_WIN) | 137 #if defined(OS_WIN) |
| 138 typedef HFONT NativeFont; | 138 typedef HFONT NativeFont; |
| 139 typedef HWND NativeEditView; | 139 typedef HWND NativeEditView; |
| 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 #ifdef __OBJC__ |
| 147 typedef id NativeViewAccessible; |
| 148 #else |
| 149 typedef void* NativeViewAccessible; |
| 150 #endif |
| 146 #elif defined(OS_MACOSX) | 151 #elif defined(OS_MACOSX) |
| 147 typedef NSFont* NativeFont; | 152 typedef NSFont* NativeFont; |
| 148 typedef NSTextField* NativeEditView; | 153 typedef NSTextField* NativeEditView; |
| 149 typedef CGContext* NativeDrawingContext; | 154 typedef CGContext* NativeDrawingContext; |
| 155 #ifdef __OBJC__ |
| 156 typedef id NativeViewAccessible; |
| 157 #else |
| 150 typedef void* NativeViewAccessible; | 158 typedef void* NativeViewAccessible; |
| 159 #endif |
| 151 #elif defined(USE_CAIRO) | 160 #elif defined(USE_CAIRO) |
| 152 typedef PangoFontDescription* NativeFont; | 161 typedef PangoFontDescription* NativeFont; |
| 153 typedef void* NativeEditView; | 162 typedef void* NativeEditView; |
| 154 typedef cairo_t* NativeDrawingContext; | 163 typedef cairo_t* NativeDrawingContext; |
| 155 typedef void* NativeViewAccessible; | 164 typedef void* NativeViewAccessible; |
| 156 #else | 165 #else |
| 157 typedef void* NativeFont; | 166 typedef void* NativeFont; |
| 158 typedef void* NativeEditView; | 167 typedef void* NativeEditView; |
| 159 typedef void* NativeDrawingContext; | 168 typedef void* NativeDrawingContext; |
| 160 typedef void* NativeViewAccessible; | 169 typedef void* NativeViewAccessible; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 #elif defined(USE_OZONE) | 265 #elif defined(USE_OZONE) |
| 257 typedef intptr_t AcceleratedWidget; | 266 typedef intptr_t AcceleratedWidget; |
| 258 const AcceleratedWidget kNullAcceleratedWidget = 0; | 267 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 259 #else | 268 #else |
| 260 #error unknown platform | 269 #error unknown platform |
| 261 #endif | 270 #endif |
| 262 | 271 |
| 263 } // namespace gfx | 272 } // namespace gfx |
| 264 | 273 |
| 265 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 274 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |