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

Side by Side Diff: views/accessibility/view_accessibility.h

Issue 261044: Accessibility information from the renderer was not being returned to tools l... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ 5 #ifndef VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_
6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ 6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 10
11 #include <oleacc.h> 11 #include <oleacc.h>
12 12
13 #include "views/controls/native/native_view_host.h"
13 #include "views/view.h" 14 #include "views/view.h"
14 15
15 //////////////////////////////////////////////////////////////////////////////// 16 ////////////////////////////////////////////////////////////////////////////////
16 // 17 //
17 // ViewAccessibility 18 // ViewAccessibility
18 // 19 //
19 // Class implementing the MSAA IAccessible COM interface for a generic View, 20 // Class implementing the MSAA IAccessible COM interface for a generic View,
20 // providing accessibility to be used by screen readers and other assistive 21 // providing accessibility to be used by screen readers and other assistive
21 // technology (AT). 22 // technology (AT).
22 // 23 //
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void SetState(VARIANT* msaa_state, views::View* view); 129 void SetState(VARIANT* msaa_state, views::View* view);
129 130
130 // Returns a conversion from the Role (as defined in accessibility_types.h) 131 // Returns a conversion from the Role (as defined in accessibility_types.h)
131 // to an MSAA role. 132 // to an MSAA role.
132 long MSAARole(AccessibilityTypes::Role role); 133 long MSAARole(AccessibilityTypes::Role role);
133 134
134 // Returns a conversion from the State (as defined in accessibility_types.h) 135 // Returns a conversion from the State (as defined in accessibility_types.h)
135 // to MSAA states set. 136 // to MSAA states set.
136 long MSAAState(AccessibilityTypes::State state); 137 long MSAAState(AccessibilityTypes::State state);
137 138
139 // Returns the IAccessible interface for a native view if applicable.
140 // Returns S_OK on success.
141 HRESULT GetNativeIAccessibleInterface(views::NativeViewHost* native_host,
142 IDispatch** disp_child);
143
138 // Member View needed for view-specific calls. 144 // Member View needed for view-specific calls.
139 views::View* view_; 145 views::View* view_;
140 146
141 DISALLOW_EVIL_CONSTRUCTORS(ViewAccessibility); 147 DISALLOW_EVIL_CONSTRUCTORS(ViewAccessibility);
142 }; 148 };
143 149
150 extern const wchar_t kViewsUninitializeAccessibilityInstance[];
151 extern const wchar_t kViewsNativeHostPropForAccessibility[];
152
144 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ 153 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | views/accessibility/view_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698