Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: ui/gfx/native_widget_types.h

Issue 14018004: [Android] Refactor NativeView to be able to use it for AutofillDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 #if defined(TOOLKIT_GTK) 102 #if defined(TOOLKIT_GTK)
103 typedef struct _GdkCursor GdkCursor; 103 typedef struct _GdkCursor GdkCursor;
104 typedef union _GdkEvent GdkEvent; 104 typedef union _GdkEvent GdkEvent;
105 typedef struct _GdkPixbuf GdkPixbuf; 105 typedef struct _GdkPixbuf GdkPixbuf;
106 typedef struct _GdkRegion GdkRegion; 106 typedef struct _GdkRegion GdkRegion;
107 typedef struct _GtkWidget GtkWidget; 107 typedef struct _GtkWidget GtkWidget;
108 typedef struct _GtkWindow GtkWindow; 108 typedef struct _GtkWindow GtkWindow;
109 #elif defined(OS_ANDROID) 109 #elif defined(OS_ANDROID)
110 struct ANativeWindow; 110 struct ANativeWindow;
111 namespace content {
112 class ContentViewCore;
113 }
114 namespace ui { 111 namespace ui {
115 class WindowAndroid; 112 class WindowAndroid;
113 class ViewAndroid;
116 } 114 }
117 #endif 115 #endif
118 class SkBitmap; 116 class SkBitmap;
119 117
120 namespace gfx { 118 namespace gfx {
121 119
122 #if defined(USE_AURA) 120 #if defined(USE_AURA)
123 typedef ui::Cursor NativeCursor; 121 typedef ui::Cursor NativeCursor;
124 typedef aura::Window* NativeView; 122 typedef aura::Window* NativeView;
125 typedef aura::Window* NativeWindow; 123 typedef aura::Window* NativeWindow;
(...skipping 16 matching lines...) Expand all
142 typedef NSWindow* NativeWindow; 140 typedef NSWindow* NativeWindow;
143 typedef NSEvent* NativeEvent; 141 typedef NSEvent* NativeEvent;
144 #elif defined(TOOLKIT_GTK) 142 #elif defined(TOOLKIT_GTK)
145 typedef GdkCursor* NativeCursor; 143 typedef GdkCursor* NativeCursor;
146 typedef GtkWidget* NativeView; 144 typedef GtkWidget* NativeView;
147 typedef GtkWindow* NativeWindow; 145 typedef GtkWindow* NativeWindow;
148 typedef GdkRegion* NativeRegion; 146 typedef GdkRegion* NativeRegion;
149 typedef GdkEvent* NativeEvent; 147 typedef GdkEvent* NativeEvent;
150 #elif defined(OS_ANDROID) 148 #elif defined(OS_ANDROID)
151 typedef void* NativeCursor; 149 typedef void* NativeCursor;
152 typedef content::ContentViewCore* NativeView; 150 typedef ui::ViewAndroid* NativeView;
153 typedef ui::WindowAndroid* NativeWindow; 151 typedef ui::WindowAndroid* NativeWindow;
154 typedef void* NativeRegion; 152 typedef void* NativeRegion;
155 typedef jobject NativeEvent; 153 typedef jobject NativeEvent;
156 #endif 154 #endif
157 155
158 #if defined(OS_WIN) 156 #if defined(OS_WIN)
159 typedef HFONT NativeFont; 157 typedef HFONT NativeFont;
160 typedef HWND NativeEditView; 158 typedef HWND NativeEditView;
161 typedef HDC NativeDrawingContext; 159 typedef HDC NativeDrawingContext;
162 typedef IAccessible* NativeViewAccessible; 160 typedef IAccessible* NativeViewAccessible;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 const AcceleratedWidget kNullAcceleratedWidget = 0; 317 const AcceleratedWidget kNullAcceleratedWidget = 0;
320 #else 318 #else
321 #error unknown platform 319 #error unknown platform
322 #endif 320 #endif
323 321
324 typedef void* GpuMemoryBufferHandle; 322 typedef void* GpuMemoryBufferHandle;
325 323
326 } // namespace gfx 324 } // namespace gfx
327 325
328 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 326 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698