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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 #elif defined(OS_MACOSX) | 128 #elif defined(OS_MACOSX) |
129 typedef NSCursor* NativeCursor; | 129 typedef NSCursor* NativeCursor; |
130 typedef NSView* NativeView; | 130 typedef NSView* NativeView; |
131 typedef NSWindow* NativeWindow; | 131 typedef NSWindow* NativeWindow; |
132 typedef NSEvent* NativeEvent; | 132 typedef NSEvent* NativeEvent; |
133 #elif defined(OS_ANDROID) | 133 #elif defined(OS_ANDROID) |
134 typedef void* NativeCursor; | 134 typedef void* NativeCursor; |
135 typedef ui::ViewAndroid* NativeView; | 135 typedef ui::ViewAndroid* NativeView; |
136 typedef ui::WindowAndroid* NativeWindow; | 136 typedef ui::WindowAndroid* NativeWindow; |
137 typedef jobject NativeEvent; | 137 typedef jobject NativeEvent; |
| 138 #else |
| 139 #error Unknown build environment. |
138 #endif | 140 #endif |
139 | 141 |
140 #if defined(OS_WIN) | 142 #if defined(OS_WIN) |
141 typedef HFONT NativeFont; | 143 typedef HFONT NativeFont; |
142 typedef HWND NativeEditView; | 144 typedef HWND NativeEditView; |
143 typedef HDC NativeDrawingContext; | 145 typedef HDC NativeDrawingContext; |
144 typedef IAccessible* NativeViewAccessible; | 146 typedef IAccessible* NativeViewAccessible; |
145 #elif defined(OS_IOS) | 147 #elif defined(OS_IOS) |
146 typedef UIFont* NativeFont; | 148 typedef UIFont* NativeFont; |
147 typedef UITextField* NativeEditView; | 149 typedef UITextField* NativeEditView; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 #elif defined(USE_OZONE) | 271 #elif defined(USE_OZONE) |
270 typedef intptr_t AcceleratedWidget; | 272 typedef intptr_t AcceleratedWidget; |
271 const AcceleratedWidget kNullAcceleratedWidget = 0; | 273 const AcceleratedWidget kNullAcceleratedWidget = 0; |
272 #else | 274 #else |
273 #error unknown platform | 275 #error unknown platform |
274 #endif | 276 #endif |
275 | 277 |
276 } // namespace gfx | 278 } // namespace gfx |
277 | 279 |
278 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 280 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |