| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 typedef GtkWidget* NativeView; | 137 typedef GtkWidget* NativeView; |
| 138 typedef GtkWindow* NativeWindow; | 138 typedef GtkWindow* NativeWindow; |
| 139 typedef GdkRegion* NativeRegion; | 139 typedef GdkRegion* NativeRegion; |
| 140 typedef GdkEvent* NativeEvent; | 140 typedef GdkEvent* NativeEvent; |
| 141 #elif defined(OS_ANDROID) | 141 #elif defined(OS_ANDROID) |
| 142 typedef void* NativeCursor; | 142 typedef void* NativeCursor; |
| 143 typedef ui::ViewAndroid* NativeView; | 143 typedef ui::ViewAndroid* NativeView; |
| 144 typedef ui::WindowAndroid* NativeWindow; | 144 typedef ui::WindowAndroid* NativeWindow; |
| 145 typedef void* NativeRegion; | 145 typedef void* NativeRegion; |
| 146 typedef jobject NativeEvent; | 146 typedef jobject NativeEvent; |
| 147 #elif defined(CHROMECAST_BUILD) |
| 148 typedef void* NativeCursor; |
| 149 typedef void* NativeView; |
| 150 typedef void* NativeWindow; |
| 151 typedef void* NativeRegion; |
| 152 typedef void* NativeEvent; |
| 147 #endif | 153 #endif |
| 148 | 154 |
| 149 #if defined(OS_WIN) | 155 #if defined(OS_WIN) |
| 150 typedef HFONT NativeFont; | 156 typedef HFONT NativeFont; |
| 151 typedef HWND NativeEditView; | 157 typedef HWND NativeEditView; |
| 152 typedef HDC NativeDrawingContext; | 158 typedef HDC NativeDrawingContext; |
| 153 typedef IAccessible* NativeViewAccessible; | 159 typedef IAccessible* NativeViewAccessible; |
| 154 #elif defined(OS_IOS) | 160 #elif defined(OS_IOS) |
| 155 typedef UIFont* NativeFont; | 161 typedef UIFont* NativeFont; |
| 156 typedef UITextField* NativeEditView; | 162 typedef UITextField* NativeEditView; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 const AcceleratedWidget kNullAcceleratedWidget = 0; | 274 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 269 #elif defined(OS_MACOSX) | 275 #elif defined(OS_MACOSX) |
| 270 typedef NSView* AcceleratedWidget; | 276 typedef NSView* AcceleratedWidget; |
| 271 const AcceleratedWidget kNullAcceleratedWidget = 0; | 277 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 272 #elif defined(OS_ANDROID) | 278 #elif defined(OS_ANDROID) |
| 273 typedef ANativeWindow* AcceleratedWidget; | 279 typedef ANativeWindow* AcceleratedWidget; |
| 274 const AcceleratedWidget kNullAcceleratedWidget = 0; | 280 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 275 #elif defined(USE_OZONE) | 281 #elif defined(USE_OZONE) |
| 276 typedef intptr_t AcceleratedWidget; | 282 typedef intptr_t AcceleratedWidget; |
| 277 const AcceleratedWidget kNullAcceleratedWidget = 0; | 283 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 284 #elif defined(CHROMECAST_BUILD) |
| 285 typedef uint64 AcceleratedWidget; |
| 286 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 278 #else | 287 #else |
| 279 #error unknown platform | 288 #error unknown platform |
| 280 #endif | 289 #endif |
| 281 | 290 |
| 282 } // namespace gfx | 291 } // namespace gfx |
| 283 | 292 |
| 284 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 293 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |