| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 typedef ui::Event* NativeEvent; | 117 typedef ui::Event* NativeEvent; |
| 118 #elif defined(OS_IOS) | 118 #elif defined(OS_IOS) |
| 119 typedef void* NativeCursor; | 119 typedef void* NativeCursor; |
| 120 typedef UIView* NativeView; | 120 typedef UIView* NativeView; |
| 121 typedef UIWindow* NativeWindow; | 121 typedef UIWindow* NativeWindow; |
| 122 typedef UIEvent* NativeEvent; | 122 typedef UIEvent* NativeEvent; |
| 123 #elif defined(OS_MACOSX) | 123 #elif defined(OS_MACOSX) |
| 124 typedef NSCursor* NativeCursor; | 124 typedef NSCursor* NativeCursor; |
| 125 typedef NSView* NativeView; | 125 typedef NSView* NativeView; |
| 126 typedef NSWindow* NativeWindow; | 126 typedef NSWindow* NativeWindow; |
| 127 typedef void* NativeRegion; |
| 127 typedef NSEvent* NativeEvent; | 128 typedef NSEvent* NativeEvent; |
| 128 #elif defined(OS_ANDROID) | 129 #elif defined(OS_ANDROID) |
| 129 typedef void* NativeCursor; | 130 typedef void* NativeCursor; |
| 130 typedef ui::ViewAndroid* NativeView; | 131 typedef ui::ViewAndroid* NativeView; |
| 131 typedef ui::WindowAndroid* NativeWindow; | 132 typedef ui::WindowAndroid* NativeWindow; |
| 132 typedef void* NativeRegion; | 133 typedef void* NativeRegion; |
| 133 typedef jobject NativeEvent; | 134 typedef jobject NativeEvent; |
| 134 #endif | 135 #endif |
| 135 | 136 |
| 136 #if defined(OS_WIN) | 137 #if defined(OS_WIN) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 #elif defined(USE_OZONE) | 256 #elif defined(USE_OZONE) |
| 256 typedef intptr_t AcceleratedWidget; | 257 typedef intptr_t AcceleratedWidget; |
| 257 const AcceleratedWidget kNullAcceleratedWidget = 0; | 258 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 258 #else | 259 #else |
| 259 #error unknown platform | 260 #error unknown platform |
| 260 #endif | 261 #endif |
| 261 | 262 |
| 262 } // namespace gfx | 263 } // namespace gfx |
| 263 | 264 |
| 264 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 265 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |