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