Chromium Code Reviews| 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 typedef void* NativeViewAccessible; | |
|
dmazzoni
2014/07/30 05:53:12
Why wouldn't this be the same as OS_MACOSX? Is the
Andre
2014/07/30 18:50:16
Done.
The only reason I didn't do it for iOS is be
| |
| 146 #elif defined(OS_MACOSX) | 147 #elif defined(OS_MACOSX) |
| 147 typedef NSFont* NativeFont; | 148 typedef NSFont* NativeFont; |
| 148 typedef NSTextField* NativeEditView; | 149 typedef NSTextField* NativeEditView; |
| 149 typedef CGContext* NativeDrawingContext; | 150 typedef CGContext* NativeDrawingContext; |
| 151 #ifdef __OBJC__ | |
| 152 typedef id NativeViewAccessible; | |
| 153 #else | |
| 150 typedef void* NativeViewAccessible; | 154 typedef void* NativeViewAccessible; |
| 155 #endif | |
| 151 #elif defined(USE_CAIRO) | 156 #elif defined(USE_CAIRO) |
| 152 typedef PangoFontDescription* NativeFont; | 157 typedef PangoFontDescription* NativeFont; |
| 153 typedef void* NativeEditView; | 158 typedef void* NativeEditView; |
| 154 typedef cairo_t* NativeDrawingContext; | 159 typedef cairo_t* NativeDrawingContext; |
| 155 typedef void* NativeViewAccessible; | 160 typedef void* NativeViewAccessible; |
| 156 #else | 161 #else |
| 157 typedef void* NativeFont; | 162 typedef void* NativeFont; |
| 158 typedef void* NativeEditView; | 163 typedef void* NativeEditView; |
| 159 typedef void* NativeDrawingContext; | 164 typedef void* NativeDrawingContext; |
| 160 typedef void* NativeViewAccessible; | 165 typedef void* NativeViewAccessible; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 #elif defined(USE_OZONE) | 261 #elif defined(USE_OZONE) |
| 257 typedef intptr_t AcceleratedWidget; | 262 typedef intptr_t AcceleratedWidget; |
| 258 const AcceleratedWidget kNullAcceleratedWidget = 0; | 263 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 259 #else | 264 #else |
| 260 #error unknown platform | 265 #error unknown platform |
| 261 #endif | 266 #endif |
| 262 | 267 |
| 263 } // namespace gfx | 268 } // namespace gfx |
| 264 | 269 |
| 265 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 270 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |