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

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

Issue 420653003: MacViews: Accessibility bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge accessibility_platform target to accessibility Created 6 years, 4 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
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 #if defined(OS_WIN) 137 #if defined(OS_WIN)
138 typedef HFONT NativeFont; 138 typedef HFONT NativeFont;
139 typedef HWND NativeEditView; 139 typedef HWND NativeEditView;
140 typedef HDC NativeDrawingContext; 140 typedef HDC NativeDrawingContext;
141 typedef IAccessible* NativeViewAccessible; 141 typedef IAccessible* NativeViewAccessible;
142 #elif defined(OS_IOS) 142 #elif defined(OS_IOS)
143 typedef UIFont* NativeFont; 143 typedef UIFont* NativeFont;
144 typedef UITextField* NativeEditView; 144 typedef UITextField* NativeEditView;
145 typedef CGContext* NativeDrawingContext; 145 typedef CGContext* NativeDrawingContext;
146 #ifdef __OBJC__
147 typedef id NativeViewAccessible;
148 #else
149 typedef void* NativeViewAccessible;
150 #endif
146 #elif defined(OS_MACOSX) 151 #elif defined(OS_MACOSX)
147 typedef NSFont* NativeFont; 152 typedef NSFont* NativeFont;
148 typedef NSTextField* NativeEditView; 153 typedef NSTextField* NativeEditView;
149 typedef CGContext* NativeDrawingContext; 154 typedef CGContext* NativeDrawingContext;
155 #ifdef __OBJC__
156 typedef id NativeViewAccessible;
157 #else
150 typedef void* NativeViewAccessible; 158 typedef void* NativeViewAccessible;
159 #endif
151 #elif defined(USE_CAIRO) 160 #elif defined(USE_CAIRO)
152 typedef PangoFontDescription* NativeFont; 161 typedef PangoFontDescription* NativeFont;
153 typedef void* NativeEditView; 162 typedef void* NativeEditView;
154 typedef cairo_t* NativeDrawingContext; 163 typedef cairo_t* NativeDrawingContext;
155 typedef void* NativeViewAccessible; 164 typedef void* NativeViewAccessible;
156 #else 165 #else
157 typedef void* NativeFont; 166 typedef void* NativeFont;
158 typedef void* NativeEditView; 167 typedef void* NativeEditView;
159 typedef void* NativeDrawingContext; 168 typedef void* NativeDrawingContext;
160 typedef void* NativeViewAccessible; 169 typedef void* NativeViewAccessible;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 #elif defined(USE_OZONE) 265 #elif defined(USE_OZONE)
257 typedef intptr_t AcceleratedWidget; 266 typedef intptr_t AcceleratedWidget;
258 const AcceleratedWidget kNullAcceleratedWidget = 0; 267 const AcceleratedWidget kNullAcceleratedWidget = 0;
259 #else 268 #else
260 #error unknown platform 269 #error unknown platform
261 #endif 270 #endif
262 271
263 } // namespace gfx 272 } // namespace gfx
264 273
265 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 274 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_mac.mm ('k') | ui/views/accessibility/native_view_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698