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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 class UIWindow; | 74 class UIWindow; |
75 class UITextField; | 75 class UITextField; |
76 #endif // __OBJC__ | 76 #endif // __OBJC__ |
77 #elif defined(OS_MACOSX) | 77 #elif defined(OS_MACOSX) |
78 struct CGContext; | 78 struct CGContext; |
79 #ifdef __OBJC__ | 79 #ifdef __OBJC__ |
80 @class NSCursor; | 80 @class NSCursor; |
81 @class NSEvent; | 81 @class NSEvent; |
82 @class NSFont; | 82 @class NSFont; |
83 @class NSImage; | 83 @class NSImage; |
| 84 @class NSObject; |
84 @class NSView; | 85 @class NSView; |
85 @class NSWindow; | 86 @class NSWindow; |
86 @class NSTextField; | 87 @class NSTextField; |
87 #else | 88 #else |
88 class NSCursor; | 89 class NSCursor; |
89 class NSEvent; | 90 class NSEvent; |
90 class NSFont; | 91 class NSFont; |
91 class NSImage; | 92 class NSImage; |
| 93 class NSObject; |
92 struct NSView; | 94 struct NSView; |
93 class NSWindow; | 95 class NSWindow; |
94 class NSTextField; | 96 class NSTextField; |
95 #endif // __OBJC__ | 97 #endif // __OBJC__ |
96 #elif defined(OS_POSIX) | 98 #elif defined(OS_POSIX) |
97 typedef struct _PangoFontDescription PangoFontDescription; | 99 typedef struct _PangoFontDescription PangoFontDescription; |
98 typedef struct _cairo cairo_t; | 100 typedef struct _cairo cairo_t; |
99 #endif | 101 #endif |
100 | 102 |
101 #if defined(OS_ANDROID) | 103 #if defined(OS_ANDROID) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 typedef HDC NativeDrawingContext; | 142 typedef HDC NativeDrawingContext; |
141 typedef IAccessible* NativeViewAccessible; | 143 typedef IAccessible* NativeViewAccessible; |
142 #elif defined(OS_IOS) | 144 #elif defined(OS_IOS) |
143 typedef UIFont* NativeFont; | 145 typedef UIFont* NativeFont; |
144 typedef UITextField* NativeEditView; | 146 typedef UITextField* NativeEditView; |
145 typedef CGContext* NativeDrawingContext; | 147 typedef CGContext* NativeDrawingContext; |
146 #elif defined(OS_MACOSX) | 148 #elif defined(OS_MACOSX) |
147 typedef NSFont* NativeFont; | 149 typedef NSFont* NativeFont; |
148 typedef NSTextField* NativeEditView; | 150 typedef NSTextField* NativeEditView; |
149 typedef CGContext* NativeDrawingContext; | 151 typedef CGContext* NativeDrawingContext; |
150 typedef void* NativeViewAccessible; | 152 typedef NSObject* NativeViewAccessible; |
151 #elif defined(USE_CAIRO) | 153 #elif defined(USE_CAIRO) |
152 typedef PangoFontDescription* NativeFont; | 154 typedef PangoFontDescription* NativeFont; |
153 typedef void* NativeEditView; | 155 typedef void* NativeEditView; |
154 typedef cairo_t* NativeDrawingContext; | 156 typedef cairo_t* NativeDrawingContext; |
155 typedef void* NativeViewAccessible; | 157 typedef void* NativeViewAccessible; |
156 #else | 158 #else |
157 typedef void* NativeFont; | 159 typedef void* NativeFont; |
158 typedef void* NativeEditView; | 160 typedef void* NativeEditView; |
159 typedef void* NativeDrawingContext; | 161 typedef void* NativeDrawingContext; |
160 typedef void* NativeViewAccessible; | 162 typedef void* NativeViewAccessible; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 #elif defined(USE_OZONE) | 258 #elif defined(USE_OZONE) |
257 typedef intptr_t AcceleratedWidget; | 259 typedef intptr_t AcceleratedWidget; |
258 const AcceleratedWidget kNullAcceleratedWidget = 0; | 260 const AcceleratedWidget kNullAcceleratedWidget = 0; |
259 #else | 261 #else |
260 #error unknown platform | 262 #error unknown platform |
261 #endif | 263 #endif |
262 | 264 |
263 } // namespace gfx | 265 } // namespace gfx |
264 | 266 |
265 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 267 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |