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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 typedef struct _GdkPixbuf GdkPixbuf; | 104 typedef struct _GdkPixbuf GdkPixbuf; |
105 typedef struct _GdkRegion GdkRegion; | 105 typedef struct _GdkRegion GdkRegion; |
106 typedef struct _GtkWidget GtkWidget; | 106 typedef struct _GtkWidget GtkWidget; |
107 typedef struct _GtkWindow GtkWindow; | 107 typedef struct _GtkWindow GtkWindow; |
108 #elif defined(OS_ANDROID) | 108 #elif defined(OS_ANDROID) |
109 struct ANativeWindow; | 109 struct ANativeWindow; |
110 namespace content { | 110 namespace content { |
111 class ContentViewCore; | 111 class ContentViewCore; |
112 } | 112 } |
113 #endif | 113 #endif |
| 114 class WindowAndroid; |
114 class SkBitmap; | 115 class SkBitmap; |
115 | 116 |
116 namespace gfx { | 117 namespace gfx { |
117 | 118 |
118 #if defined(USE_AURA) | 119 #if defined(USE_AURA) |
119 typedef ui::Cursor NativeCursor; | 120 typedef ui::Cursor NativeCursor; |
120 typedef aura::Window* NativeView; | 121 typedef aura::Window* NativeView; |
121 typedef aura::Window* NativeWindow; | 122 typedef aura::Window* NativeWindow; |
122 typedef SkRegion* NativeRegion; | 123 typedef SkRegion* NativeRegion; |
123 typedef ui::Event* NativeEvent; | 124 typedef ui::Event* NativeEvent; |
(...skipping 15 matching lines...) Expand all Loading... |
139 typedef NSEvent* NativeEvent; | 140 typedef NSEvent* NativeEvent; |
140 #elif defined(TOOLKIT_GTK) | 141 #elif defined(TOOLKIT_GTK) |
141 typedef GdkCursor* NativeCursor; | 142 typedef GdkCursor* NativeCursor; |
142 typedef GtkWidget* NativeView; | 143 typedef GtkWidget* NativeView; |
143 typedef GtkWindow* NativeWindow; | 144 typedef GtkWindow* NativeWindow; |
144 typedef GdkRegion* NativeRegion; | 145 typedef GdkRegion* NativeRegion; |
145 typedef GdkEvent* NativeEvent; | 146 typedef GdkEvent* NativeEvent; |
146 #elif defined(OS_ANDROID) | 147 #elif defined(OS_ANDROID) |
147 typedef void* NativeCursor; | 148 typedef void* NativeCursor; |
148 typedef content::ContentViewCore* NativeView; | 149 typedef content::ContentViewCore* NativeView; |
149 typedef content::ContentViewCore* NativeWindow; | 150 typedef WindowAndroid* NativeWindow; |
150 typedef void* NativeRegion; | 151 typedef void* NativeRegion; |
151 typedef jobject NativeEvent; | 152 typedef jobject NativeEvent; |
152 #endif | 153 #endif |
153 | 154 |
154 #if defined(OS_WIN) | 155 #if defined(OS_WIN) |
155 typedef HFONT NativeFont; | 156 typedef HFONT NativeFont; |
156 typedef HWND NativeEditView; | 157 typedef HWND NativeEditView; |
157 typedef HDC NativeDrawingContext; | 158 typedef HDC NativeDrawingContext; |
158 typedef HMENU NativeMenu; | 159 typedef HMENU NativeMenu; |
159 typedef IAccessible* NativeViewAccessible; | 160 typedef IAccessible* NativeViewAccessible; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 #elif defined(OS_ANDROID) | 318 #elif defined(OS_ANDROID) |
318 typedef ANativeWindow* AcceleratedWidget; | 319 typedef ANativeWindow* AcceleratedWidget; |
319 const AcceleratedWidget kNullAcceleratedWidget = 0; | 320 const AcceleratedWidget kNullAcceleratedWidget = 0; |
320 #else | 321 #else |
321 #error unknown platform | 322 #error unknown platform |
322 #endif | 323 #endif |
323 | 324 |
324 } // namespace gfx | 325 } // namespace gfx |
325 | 326 |
326 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 327 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |