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

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

Issue 1005293002: Re-land: Resurrect Aura Linux accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 #if defined(OS_ANDROID) 100 #if defined(OS_ANDROID)
101 struct ANativeWindow; 101 struct ANativeWindow;
102 namespace ui { 102 namespace ui {
103 class WindowAndroid; 103 class WindowAndroid;
104 class ViewAndroid; 104 class ViewAndroid;
105 } 105 }
106 #endif 106 #endif
107 class SkBitmap; 107 class SkBitmap;
108 108
109 #if defined(USE_X11) && !defined(OS_CHROMEOS)
110 extern "C" {
111 struct _AtkObject;
112 typedef struct _AtkObject AtkObject;
113 }
114 #endif
115
109 namespace gfx { 116 namespace gfx {
110 117
111 #if defined(USE_AURA) 118 #if defined(USE_AURA)
112 typedef ui::Cursor NativeCursor; 119 typedef ui::Cursor NativeCursor;
113 typedef aura::Window* NativeView; 120 typedef aura::Window* NativeView;
114 typedef aura::Window* NativeWindow; 121 typedef aura::Window* NativeWindow;
115 typedef SkRegion* NativeRegion; 122 typedef SkRegion* NativeRegion;
116 typedef ui::Event* NativeEvent; 123 typedef ui::Event* NativeEvent;
117 #elif defined(OS_IOS) 124 #elif defined(OS_IOS)
118 typedef void* NativeCursor; 125 typedef void* NativeCursor;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 typedef void* NativeViewAccessible; 164 typedef void* NativeViewAccessible;
158 #endif // __OBJC__ 165 #endif // __OBJC__
159 #else // Android, Linux, Chrome OS, etc. 166 #else // Android, Linux, Chrome OS, etc.
160 // Linux doesn't have a native font type. 167 // Linux doesn't have a native font type.
161 typedef void* NativeEditView; 168 typedef void* NativeEditView;
162 #if defined(USE_CAIRO) 169 #if defined(USE_CAIRO)
163 typedef cairo_t* NativeDrawingContext; 170 typedef cairo_t* NativeDrawingContext;
164 #else 171 #else
165 typedef void* NativeDrawingContext; 172 typedef void* NativeDrawingContext;
166 #endif // defined(USE_CAIRO) 173 #endif // defined(USE_CAIRO)
174 #if defined(USE_X11) && !defined(OS_CHROMEOS)
175 typedef AtkObject* NativeViewAccessible;
176 #else
167 typedef void* NativeViewAccessible; 177 typedef void* NativeViewAccessible;
168 #endif 178 #endif
179 #endif
169 180
170 // A constant value to indicate that gfx::NativeCursor refers to no cursor. 181 // A constant value to indicate that gfx::NativeCursor refers to no cursor.
171 #if defined(USE_AURA) 182 #if defined(USE_AURA)
172 const int kNullCursor = 0; 183 const int kNullCursor = 0;
173 #else 184 #else
174 const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL); 185 const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL);
175 #endif 186 #endif
176 187
177 #if defined(OS_IOS) 188 #if defined(OS_IOS)
178 typedef UIImage NativeImageType; 189 typedef UIImage NativeImageType;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 #elif defined(USE_OZONE) 272 #elif defined(USE_OZONE)
262 typedef intptr_t AcceleratedWidget; 273 typedef intptr_t AcceleratedWidget;
263 const AcceleratedWidget kNullAcceleratedWidget = 0; 274 const AcceleratedWidget kNullAcceleratedWidget = 0;
264 #else 275 #else
265 #error unknown platform 276 #error unknown platform
266 #endif 277 #endif
267 278
268 } // namespace gfx 279 } // namespace gfx
269 280
270 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 281 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698