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. | |
140 #endif | 138 #endif |
141 | 139 |
142 #if defined(OS_WIN) | 140 #if defined(OS_WIN) |
143 typedef HFONT NativeFont; | 141 typedef HFONT NativeFont; |
144 typedef HWND NativeEditView; | 142 typedef HWND NativeEditView; |
145 typedef HDC NativeDrawingContext; | 143 typedef HDC NativeDrawingContext; |
146 typedef IAccessible* NativeViewAccessible; | 144 typedef IAccessible* NativeViewAccessible; |
147 #elif defined(OS_IOS) | 145 #elif defined(OS_IOS) |
148 typedef UIFont* NativeFont; | 146 typedef UIFont* NativeFont; |
149 typedef UITextField* NativeEditView; | 147 typedef UITextField* NativeEditView; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 #elif defined(USE_OZONE) | 269 #elif defined(USE_OZONE) |
272 typedef intptr_t AcceleratedWidget; | 270 typedef intptr_t AcceleratedWidget; |
273 const AcceleratedWidget kNullAcceleratedWidget = 0; | 271 const AcceleratedWidget kNullAcceleratedWidget = 0; |
274 #else | 272 #else |
275 #error unknown platform | 273 #error unknown platform |
276 #endif | 274 #endif |
277 | 275 |
278 } // namespace gfx | 276 } // namespace gfx |
279 | 277 |
280 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 278 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |