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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 #if defined(TOOLKIT_GTK) | 83 #if defined(TOOLKIT_GTK) |
84 typedef struct _GdkCursor GdkCursor; | 84 typedef struct _GdkCursor GdkCursor; |
85 typedef union _GdkEvent GdkEvent; | 85 typedef union _GdkEvent GdkEvent; |
86 typedef struct _GdkPixbuf GdkPixbuf; | 86 typedef struct _GdkPixbuf GdkPixbuf; |
87 typedef struct _GdkRegion GdkRegion; | 87 typedef struct _GdkRegion GdkRegion; |
88 typedef struct _GtkWidget GtkWidget; | 88 typedef struct _GtkWidget GtkWidget; |
89 typedef struct _GtkWindow GtkWindow; | 89 typedef struct _GtkWindow GtkWindow; |
90 #elif defined(OS_ANDROID) | 90 #elif defined(OS_ANDROID) |
91 namespace content { | 91 namespace content { |
92 class ContentView; | 92 class ContentViewCore; |
93 } | 93 } |
94 #endif | 94 #endif |
95 class SkBitmap; | 95 class SkBitmap; |
96 | 96 |
97 namespace gfx { | 97 namespace gfx { |
98 | 98 |
99 #if defined(USE_AURA) | 99 #if defined(USE_AURA) |
100 typedef ui::Cursor NativeCursor; | 100 typedef ui::Cursor NativeCursor; |
101 typedef aura::Window* NativeView; | 101 typedef aura::Window* NativeView; |
102 typedef aura::Window* NativeWindow; | 102 typedef aura::Window* NativeWindow; |
(...skipping 11 matching lines...) Expand all Loading... |
114 typedef NSWindow* NativeWindow; | 114 typedef NSWindow* NativeWindow; |
115 typedef NSEvent* NativeEvent; | 115 typedef NSEvent* NativeEvent; |
116 #elif defined(TOOLKIT_GTK) | 116 #elif defined(TOOLKIT_GTK) |
117 typedef GdkCursor* NativeCursor; | 117 typedef GdkCursor* NativeCursor; |
118 typedef GtkWidget* NativeView; | 118 typedef GtkWidget* NativeView; |
119 typedef GtkWindow* NativeWindow; | 119 typedef GtkWindow* NativeWindow; |
120 typedef GdkRegion* NativeRegion; | 120 typedef GdkRegion* NativeRegion; |
121 typedef GdkEvent* NativeEvent; | 121 typedef GdkEvent* NativeEvent; |
122 #elif defined(OS_ANDROID) | 122 #elif defined(OS_ANDROID) |
123 typedef void* NativeCursor; | 123 typedef void* NativeCursor; |
124 typedef content::ContentView* NativeView; | 124 typedef content::ContentViewCore* NativeView; |
125 typedef content::ContentView* NativeWindow; | 125 typedef content::ContentViewCore* NativeWindow; |
126 typedef void* NativeRegion; | 126 typedef void* NativeRegion; |
127 typedef jobject NativeEvent; | 127 typedef jobject NativeEvent; |
128 #endif | 128 #endif |
129 | 129 |
130 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
131 typedef HFONT NativeFont; | 131 typedef HFONT NativeFont; |
132 typedef HWND NativeEditView; | 132 typedef HWND NativeEditView; |
133 typedef HDC NativeDrawingContext; | 133 typedef HDC NativeDrawingContext; |
134 typedef HMENU NativeMenu; | 134 typedef HMENU NativeMenu; |
135 typedef IAccessible* NativeViewAccessible; | 135 typedef IAccessible* NativeViewAccessible; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 #elif defined(OS_ANDROID) | 283 #elif defined(OS_ANDROID) |
284 typedef uint64 AcceleratedWidget; | 284 typedef uint64 AcceleratedWidget; |
285 const AcceleratedWidget kNullAcceleratedWidget = 0; | 285 const AcceleratedWidget kNullAcceleratedWidget = 0; |
286 #else | 286 #else |
287 #error unknown platform | 287 #error unknown platform |
288 #endif | 288 #endif |
289 | 289 |
290 } // namespace gfx | 290 } // namespace gfx |
291 | 291 |
292 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 292 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |