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_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 #include <oleacc.h> | 10 #include <oleacc.h> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 COM_INTERFACE_ENTRY(IAccessible2_2) | 54 COM_INTERFACE_ENTRY(IAccessible2_2) |
55 COM_INTERFACE_ENTRY(IAccessibleEx) | 55 COM_INTERFACE_ENTRY(IAccessibleEx) |
56 COM_INTERFACE_ENTRY(IAccessibleText) | 56 COM_INTERFACE_ENTRY(IAccessibleText) |
57 COM_INTERFACE_ENTRY(IRawElementProviderSimple) | 57 COM_INTERFACE_ENTRY(IRawElementProviderSimple) |
58 COM_INTERFACE_ENTRY(IServiceProvider) | 58 COM_INTERFACE_ENTRY(IServiceProvider) |
59 END_COM_MAP() | 59 END_COM_MAP() |
60 | 60 |
61 virtual ~NativeViewAccessibilityWin(); | 61 virtual ~NativeViewAccessibilityWin(); |
62 | 62 |
63 // NativeViewAccessibility. | 63 // NativeViewAccessibility. |
64 virtual void NotifyAccessibilityEvent( | 64 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; |
65 ui::AXEvent event_type) override; | 65 gfx::NativeViewAccessible GetNativeObject() override; |
66 virtual gfx::NativeViewAccessible GetNativeObject() override; | 66 void Destroy() override; |
67 virtual void Destroy() override; | |
68 | 67 |
69 // Supported IAccessible methods. | 68 // Supported IAccessible methods. |
70 | 69 |
71 // Retrieves the child element or child object at a given point on the screen. | 70 // Retrieves the child element or child object at a given point on the screen. |
72 virtual STDMETHODIMP accHitTest(LONG x_left, LONG y_top, VARIANT* child); | 71 STDMETHODIMP accHitTest(LONG x_left, LONG y_top, VARIANT* child) override; |
73 | 72 |
74 // Performs the object's default action. | 73 // Performs the object's default action. |
75 STDMETHODIMP accDoDefaultAction(VARIANT var_id); | 74 STDMETHODIMP accDoDefaultAction(VARIANT var_id) override; |
76 | 75 |
77 // Retrieves the specified object's current screen location. | 76 // Retrieves the specified object's current screen location. |
78 STDMETHODIMP accLocation(LONG* x_left, | 77 STDMETHODIMP accLocation(LONG* x_left, |
79 LONG* y_top, | 78 LONG* y_top, |
80 LONG* width, | 79 LONG* width, |
81 LONG* height, | 80 LONG* height, |
82 VARIANT var_id); | 81 VARIANT var_id) override; |
83 | 82 |
84 // Traverses to another UI element and retrieves the object. | 83 // Traverses to another UI element and retrieves the object. |
85 STDMETHODIMP accNavigate(LONG nav_dir, VARIANT start, VARIANT* end); | 84 STDMETHODIMP accNavigate(LONG nav_dir, VARIANT start, VARIANT* end) override; |
86 | 85 |
87 // Retrieves an IDispatch interface pointer for the specified child. | 86 // Retrieves an IDispatch interface pointer for the specified child. |
88 virtual STDMETHODIMP get_accChild(VARIANT var_child, IDispatch** disp_child); | 87 STDMETHODIMP get_accChild(VARIANT var_child, IDispatch** disp_child) override; |
89 | 88 |
90 // Retrieves the number of accessible children. | 89 // Retrieves the number of accessible children. |
91 virtual STDMETHODIMP get_accChildCount(LONG* child_count); | 90 STDMETHODIMP get_accChildCount(LONG* child_count) override; |
92 | 91 |
93 // Retrieves a string that describes the object's default action. | 92 // Retrieves a string that describes the object's default action. |
94 STDMETHODIMP get_accDefaultAction(VARIANT var_id, BSTR* default_action); | 93 STDMETHODIMP get_accDefaultAction(VARIANT var_id, |
| 94 BSTR* default_action) override; |
95 | 95 |
96 // Retrieves the tooltip description. | 96 // Retrieves the tooltip description. |
97 STDMETHODIMP get_accDescription(VARIANT var_id, BSTR* desc); | 97 STDMETHODIMP get_accDescription(VARIANT var_id, BSTR* desc) override; |
98 | 98 |
99 // Retrieves the object that has the keyboard focus. | 99 // Retrieves the object that has the keyboard focus. |
100 STDMETHODIMP get_accFocus(VARIANT* focus_child); | 100 STDMETHODIMP get_accFocus(VARIANT* focus_child) override; |
101 | 101 |
102 // Retrieves the specified object's shortcut. | 102 // Retrieves the specified object's shortcut. |
103 STDMETHODIMP get_accKeyboardShortcut(VARIANT var_id, BSTR* access_key); | 103 STDMETHODIMP get_accKeyboardShortcut(VARIANT var_id, |
| 104 BSTR* access_key) override; |
104 | 105 |
105 // Retrieves the name of the specified object. | 106 // Retrieves the name of the specified object. |
106 STDMETHODIMP get_accName(VARIANT var_id, BSTR* name); | 107 STDMETHODIMP get_accName(VARIANT var_id, BSTR* name) override; |
107 | 108 |
108 // Retrieves the IDispatch interface of the object's parent. | 109 // Retrieves the IDispatch interface of the object's parent. |
109 STDMETHODIMP get_accParent(IDispatch** disp_parent); | 110 STDMETHODIMP get_accParent(IDispatch** disp_parent) override; |
110 | 111 |
111 // Retrieves information describing the role of the specified object. | 112 // Retrieves information describing the role of the specified object. |
112 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); | 113 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role) override; |
113 | 114 |
114 // Retrieves the current state of the specified object. | 115 // Retrieves the current state of the specified object. |
115 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state); | 116 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state) override; |
116 | 117 |
117 // Retrieve or set the string value associated with the specified object. | 118 // Retrieve or set the string value associated with the specified object. |
118 // Setting the value is not typically used by screen readers, but it's | 119 // Setting the value is not typically used by screen readers, but it's |
119 // used frequently by automation software. | 120 // used frequently by automation software. |
120 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value); | 121 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value) override; |
121 STDMETHODIMP put_accValue(VARIANT var_id, BSTR new_value); | 122 STDMETHODIMP put_accValue(VARIANT var_id, BSTR new_value) override; |
122 | 123 |
123 // Selections not applicable to views. | 124 // Selections not applicable to views. |
124 STDMETHODIMP get_accSelection(VARIANT* selected); | 125 STDMETHODIMP get_accSelection(VARIANT* selected) override; |
125 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id); | 126 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id) override; |
126 | 127 |
127 // Help functions not supported. | 128 // Help functions not supported. |
128 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help); | 129 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help) override; |
129 STDMETHODIMP get_accHelpTopic(BSTR* help_file, | 130 STDMETHODIMP get_accHelpTopic(BSTR* help_file, |
130 VARIANT var_id, | 131 VARIANT var_id, |
131 LONG* topic_id); | 132 LONG* topic_id) override; |
132 | 133 |
133 // Deprecated functions, not implemented here. | 134 // Deprecated functions, not implemented here. |
134 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name); | 135 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name) override; |
135 | 136 |
136 // | 137 // |
137 // IAccessible2 | 138 // IAccessible2 |
138 // | 139 // |
139 | 140 |
140 STDMETHODIMP role(LONG* role); | 141 STDMETHODIMP role(LONG* role) override; |
141 | 142 |
142 STDMETHODIMP get_states(AccessibleStates* states); | 143 STDMETHODIMP get_states(AccessibleStates* states) override; |
143 | 144 |
144 STDMETHODIMP get_uniqueID(LONG* unique_id); | 145 STDMETHODIMP get_uniqueID(LONG* unique_id) override; |
145 | 146 |
146 STDMETHODIMP get_windowHandle(HWND* window_handle); | 147 STDMETHODIMP get_windowHandle(HWND* window_handle) override; |
147 | 148 |
148 STDMETHODIMP get_relationTargetsOfType(BSTR type, | 149 STDMETHODIMP get_relationTargetsOfType(BSTR type, |
149 long max_targets, | 150 long max_targets, |
150 IUnknown ***targets, | 151 IUnknown*** targets, |
151 long *n_targets); | 152 long* n_targets) override; |
152 | 153 |
153 STDMETHODIMP get_attributes(BSTR* attributes); | 154 STDMETHODIMP get_attributes(BSTR* attributes) override; |
154 | 155 |
155 // | 156 // |
156 // IAccessible2 methods not implemented. | 157 // IAccessible2 methods not implemented. |
157 // | 158 // |
158 | 159 |
159 STDMETHODIMP get_attribute(BSTR name, VARIANT* attribute) { | 160 STDMETHODIMP get_attribute(BSTR name, VARIANT* attribute) override { |
160 return E_NOTIMPL; | 161 return E_NOTIMPL; |
161 } | 162 } |
162 STDMETHODIMP get_indexInParent(LONG* index_in_parent) { | 163 STDMETHODIMP get_indexInParent(LONG* index_in_parent) override { |
163 return E_NOTIMPL; | 164 return E_NOTIMPL; |
164 } | 165 } |
165 STDMETHODIMP get_extendedRole(BSTR* extended_role) { | 166 STDMETHODIMP get_extendedRole(BSTR* extended_role) override { |
166 return E_NOTIMPL; | 167 return E_NOTIMPL; |
167 } | 168 } |
168 STDMETHODIMP get_nRelations(LONG* n_relations) { | 169 STDMETHODIMP get_nRelations(LONG* n_relations) override { return E_NOTIMPL; } |
169 return E_NOTIMPL; | |
170 } | |
171 STDMETHODIMP get_relation(LONG relation_index, | 170 STDMETHODIMP get_relation(LONG relation_index, |
172 IAccessibleRelation** relation) { | 171 IAccessibleRelation** relation) override { |
173 return E_NOTIMPL; | 172 return E_NOTIMPL; |
174 } | 173 } |
175 STDMETHODIMP get_relations(LONG max_relations, | 174 STDMETHODIMP get_relations(LONG max_relations, |
176 IAccessibleRelation** relations, | 175 IAccessibleRelation** relations, |
177 LONG* n_relations) { | 176 LONG* n_relations) override { |
178 return E_NOTIMPL; | 177 return E_NOTIMPL; |
179 } | 178 } |
180 STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type) { | 179 STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type) override { |
181 return E_NOTIMPL; | 180 return E_NOTIMPL; |
182 } | 181 } |
183 STDMETHODIMP scrollToPoint( | 182 STDMETHODIMP scrollToPoint(enum IA2CoordinateType coordinate_type, |
184 enum IA2CoordinateType coordinate_type, | 183 LONG x, |
185 LONG x, | 184 LONG y) override { |
186 LONG y) { | |
187 return E_NOTIMPL; | 185 return E_NOTIMPL; |
188 } | 186 } |
189 STDMETHODIMP get_groupPosition(LONG* group_level, | 187 STDMETHODIMP get_groupPosition(LONG* group_level, |
190 LONG* similar_items_in_group, | 188 LONG* similar_items_in_group, |
191 LONG* position_in_group) { | 189 LONG* position_in_group) override { |
192 return E_NOTIMPL; | 190 return E_NOTIMPL; |
193 } | 191 } |
194 STDMETHODIMP get_localizedExtendedRole( | 192 STDMETHODIMP get_localizedExtendedRole( |
195 BSTR* localized_extended_role) { | 193 BSTR* localized_extended_role) override { |
196 return E_NOTIMPL; | 194 return E_NOTIMPL; |
197 } | 195 } |
198 STDMETHODIMP get_nExtendedStates(LONG* n_extended_states) { | 196 STDMETHODIMP get_nExtendedStates(LONG* n_extended_states) override { |
199 return E_NOTIMPL; | 197 return E_NOTIMPL; |
200 } | 198 } |
201 STDMETHODIMP get_extendedStates(LONG max_extended_states, | 199 STDMETHODIMP get_extendedStates(LONG max_extended_states, |
202 BSTR** extended_states, | 200 BSTR** extended_states, |
203 LONG* n_extended_states) { | 201 LONG* n_extended_states) override { |
204 return E_NOTIMPL; | 202 return E_NOTIMPL; |
205 } | 203 } |
206 STDMETHODIMP get_localizedExtendedStates( | 204 STDMETHODIMP get_localizedExtendedStates( |
207 LONG max_localized_extended_states, | 205 LONG max_localized_extended_states, |
208 BSTR** localized_extended_states, | 206 BSTR** localized_extended_states, |
209 LONG* n_localized_extended_states) { | 207 LONG* n_localized_extended_states) override { |
210 return E_NOTIMPL; | 208 return E_NOTIMPL; |
211 } | 209 } |
212 STDMETHODIMP get_locale(IA2Locale* locale) { | 210 STDMETHODIMP get_locale(IA2Locale* locale) override { return E_NOTIMPL; } |
213 return E_NOTIMPL; | |
214 } | |
215 STDMETHODIMP get_accessibleWithCaret(IUnknown** accessible, | 211 STDMETHODIMP get_accessibleWithCaret(IUnknown** accessible, |
216 long* caret_offset) { | 212 long* caret_offset) override { |
217 return E_NOTIMPL; | 213 return E_NOTIMPL; |
218 } | 214 } |
219 | 215 |
220 // | 216 // |
221 // IAccessibleText methods. | 217 // IAccessibleText methods. |
222 // | 218 // |
223 | 219 |
224 STDMETHODIMP get_nCharacters(LONG* n_characters); | 220 STDMETHODIMP get_nCharacters(LONG* n_characters) override; |
225 | 221 |
226 STDMETHODIMP get_caretOffset(LONG* offset); | 222 STDMETHODIMP get_caretOffset(LONG* offset) override; |
227 | 223 |
228 STDMETHODIMP get_nSelections(LONG* n_selections); | 224 STDMETHODIMP get_nSelections(LONG* n_selections) override; |
229 | 225 |
230 STDMETHODIMP get_selection(LONG selection_index, | 226 STDMETHODIMP get_selection(LONG selection_index, |
231 LONG* start_offset, | 227 LONG* start_offset, |
232 LONG* end_offset); | 228 LONG* end_offset) override; |
233 | 229 |
234 STDMETHODIMP get_text(LONG start_offset, LONG end_offset, BSTR* text); | 230 STDMETHODIMP get_text(LONG start_offset, |
| 231 LONG end_offset, |
| 232 BSTR* text) override; |
235 | 233 |
236 STDMETHODIMP get_textAtOffset(LONG offset, | 234 STDMETHODIMP get_textAtOffset(LONG offset, |
237 enum IA2TextBoundaryType boundary_type, | 235 enum IA2TextBoundaryType boundary_type, |
238 LONG* start_offset, LONG* end_offset, | 236 LONG* start_offset, |
239 BSTR* text); | 237 LONG* end_offset, |
| 238 BSTR* text) override; |
240 | 239 |
241 STDMETHODIMP get_textBeforeOffset(LONG offset, | 240 STDMETHODIMP get_textBeforeOffset(LONG offset, |
242 enum IA2TextBoundaryType boundary_type, | 241 enum IA2TextBoundaryType boundary_type, |
243 LONG* start_offset, LONG* end_offset, | 242 LONG* start_offset, |
244 BSTR* text); | 243 LONG* end_offset, |
| 244 BSTR* text) override; |
245 | 245 |
246 STDMETHODIMP get_textAfterOffset(LONG offset, | 246 STDMETHODIMP get_textAfterOffset(LONG offset, |
247 enum IA2TextBoundaryType boundary_type, | 247 enum IA2TextBoundaryType boundary_type, |
248 LONG* start_offset, LONG* end_offset, | 248 LONG* start_offset, |
249 BSTR* text); | 249 LONG* end_offset, |
| 250 BSTR* text) override; |
250 | 251 |
251 STDMETHODIMP get_offsetAtPoint(LONG x, LONG y, | 252 STDMETHODIMP get_offsetAtPoint(LONG x, |
252 enum IA2CoordinateType coord_type, | 253 LONG y, |
253 LONG* offset); | 254 enum IA2CoordinateType coord_type, |
| 255 LONG* offset) override; |
254 | 256 |
255 // | 257 // |
256 // IAccessibleText methods not implemented. | 258 // IAccessibleText methods not implemented. |
257 // | 259 // |
258 | 260 |
259 STDMETHODIMP get_newText(IA2TextSegment* new_text) { | 261 STDMETHODIMP get_newText(IA2TextSegment* new_text) override { |
260 return E_NOTIMPL; | 262 return E_NOTIMPL; |
261 } | 263 } |
262 STDMETHODIMP get_oldText(IA2TextSegment* old_text) { | 264 STDMETHODIMP get_oldText(IA2TextSegment* old_text) override { |
263 return E_NOTIMPL; | 265 return E_NOTIMPL; |
264 } | 266 } |
265 STDMETHODIMP addSelection(LONG start_offset, LONG end_offset) { | 267 STDMETHODIMP addSelection(LONG start_offset, LONG end_offset) override { |
266 return E_NOTIMPL; | 268 return E_NOTIMPL; |
267 } | 269 } |
268 STDMETHODIMP get_attributes(LONG offset, | 270 STDMETHODIMP get_attributes(LONG offset, |
269 LONG* start_offset, | 271 LONG* start_offset, |
270 LONG* end_offset, | 272 LONG* end_offset, |
271 BSTR* text_attributes) { | 273 BSTR* text_attributes) override { |
272 return E_NOTIMPL; | 274 return E_NOTIMPL; |
273 } | 275 } |
274 STDMETHODIMP get_characterExtents(LONG offset, | 276 STDMETHODIMP get_characterExtents(LONG offset, |
275 enum IA2CoordinateType coord_type, | 277 enum IA2CoordinateType coord_type, |
276 LONG* x, LONG* y, | 278 LONG* x, |
277 LONG* width, LONG* height) { | 279 LONG* y, |
| 280 LONG* width, |
| 281 LONG* height) override { |
278 return E_NOTIMPL; | 282 return E_NOTIMPL; |
279 } | 283 } |
280 STDMETHODIMP removeSelection(LONG selection_index) { | 284 STDMETHODIMP removeSelection(LONG selection_index) override { |
281 return E_NOTIMPL; | 285 return E_NOTIMPL; |
282 } | 286 } |
283 STDMETHODIMP setCaretOffset(LONG offset) { | 287 STDMETHODIMP setCaretOffset(LONG offset) override { return E_NOTIMPL; } |
284 return E_NOTIMPL; | |
285 } | |
286 STDMETHODIMP setSelection(LONG selection_index, | 288 STDMETHODIMP setSelection(LONG selection_index, |
287 LONG start_offset, | 289 LONG start_offset, |
288 LONG end_offset) { | 290 LONG end_offset) override { |
289 return E_NOTIMPL; | 291 return E_NOTIMPL; |
290 } | 292 } |
291 STDMETHODIMP scrollSubstringTo(LONG start_index, | 293 STDMETHODIMP scrollSubstringTo(LONG start_index, |
292 LONG end_index, | 294 LONG end_index, |
293 enum IA2ScrollType scroll_type) { | 295 enum IA2ScrollType scroll_type) override { |
294 return E_NOTIMPL; | 296 return E_NOTIMPL; |
295 } | 297 } |
296 STDMETHODIMP scrollSubstringToPoint(LONG start_index, | 298 STDMETHODIMP scrollSubstringToPoint(LONG start_index, |
297 LONG end_index, | 299 LONG end_index, |
298 enum IA2CoordinateType coordinate_type, | 300 enum IA2CoordinateType coordinate_type, |
299 LONG x, LONG y) { | 301 LONG x, |
| 302 LONG y) override { |
300 return E_NOTIMPL; | 303 return E_NOTIMPL; |
301 } | 304 } |
302 | 305 |
303 // | 306 // |
304 // IServiceProvider methods. | 307 // IServiceProvider methods. |
305 // | 308 // |
306 | 309 |
307 STDMETHODIMP QueryService(REFGUID guidService, REFIID riid, void** object); | 310 STDMETHODIMP QueryService(REFGUID guidService, |
| 311 REFIID riid, |
| 312 void** object) override; |
308 | 313 |
309 // | 314 // |
310 // IAccessibleEx methods not implemented. | 315 // IAccessibleEx methods not implemented. |
311 // | 316 // |
312 STDMETHODIMP GetObjectForChild(long child_id, IAccessibleEx** ret) { | 317 STDMETHODIMP GetObjectForChild(long child_id, IAccessibleEx** ret) override { |
313 return E_NOTIMPL; | 318 return E_NOTIMPL; |
314 } | 319 } |
315 | 320 |
316 STDMETHODIMP GetIAccessiblePair(IAccessible** acc, long* child_id) { | 321 STDMETHODIMP GetIAccessiblePair(IAccessible** acc, long* child_id) override { |
317 return E_NOTIMPL; | 322 return E_NOTIMPL; |
318 } | 323 } |
319 | 324 |
320 STDMETHODIMP GetRuntimeId(SAFEARRAY** runtime_id) { | 325 STDMETHODIMP GetRuntimeId(SAFEARRAY** runtime_id) override { |
321 return E_NOTIMPL; | 326 return E_NOTIMPL; |
322 } | 327 } |
323 | 328 |
324 STDMETHODIMP ConvertReturnedElement(IRawElementProviderSimple* element, | 329 STDMETHODIMP ConvertReturnedElement(IRawElementProviderSimple* element, |
325 IAccessibleEx** acc) { | 330 IAccessibleEx** acc) override { |
326 return E_NOTIMPL; | 331 return E_NOTIMPL; |
327 } | 332 } |
328 | 333 |
329 // | 334 // |
330 // IRawElementProviderSimple methods. | 335 // IRawElementProviderSimple methods. |
331 // | 336 // |
332 // The GetPatternProvider/GetPropertyValue methods need to be implemented for | 337 // The GetPatternProvider/GetPropertyValue methods need to be implemented for |
333 // the on-screen keyboard to show up in Windows 8 metro. | 338 // the on-screen keyboard to show up in Windows 8 metro. |
334 STDMETHODIMP GetPatternProvider(PATTERNID id, IUnknown** provider); | 339 STDMETHODIMP GetPatternProvider(PATTERNID id, IUnknown** provider) override; |
335 STDMETHODIMP GetPropertyValue(PROPERTYID id, VARIANT* ret); | 340 STDMETHODIMP GetPropertyValue(PROPERTYID id, VARIANT* ret) override; |
336 | 341 |
337 // | 342 // |
338 // IRawElementProviderSimple methods not implemented. | 343 // IRawElementProviderSimple methods not implemented. |
339 // | 344 // |
340 STDMETHODIMP get_ProviderOptions(enum ProviderOptions* ret) { | 345 STDMETHODIMP get_ProviderOptions(enum ProviderOptions* ret) override { |
341 return E_NOTIMPL; | 346 return E_NOTIMPL; |
342 } | 347 } |
343 | 348 |
344 STDMETHODIMP get_HostRawElementProvider( | 349 STDMETHODIMP get_HostRawElementProvider( |
345 IRawElementProviderSimple** provider) { | 350 IRawElementProviderSimple** provider) override { |
346 return E_NOTIMPL; | 351 return E_NOTIMPL; |
347 } | 352 } |
348 | 353 |
349 // Static methods | 354 // Static methods |
350 | 355 |
351 // Returns a conversion from the event (as defined in ax_enums.idl) | 356 // Returns a conversion from the event (as defined in ax_enums.idl) |
352 // to an MSAA event. | 357 // to an MSAA event. |
353 static int32 MSAAEvent(ui::AXEvent event); | 358 static int32 MSAAEvent(ui::AXEvent event); |
354 | 359 |
355 // Returns a conversion from the Role (as defined in ax_enums.idl) | 360 // Returns a conversion from the Role (as defined in ax_enums.idl) |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 // an alert event, in order to provide an api to quickly identify all | 439 // an alert event, in order to provide an api to quickly identify all |
435 // open alerts. | 440 // open alerts. |
436 static std::vector<int> alert_target_view_storage_ids_; | 441 static std::vector<int> alert_target_view_storage_ids_; |
437 | 442 |
438 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); | 443 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); |
439 }; | 444 }; |
440 | 445 |
441 } // namespace views | 446 } // namespace views |
442 | 447 |
443 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 448 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
OLD | NEW |