OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 CONTENT_EXPORT STDMETHODIMP get_nRelations(LONG* n_relations); | 188 CONTENT_EXPORT STDMETHODIMP get_nRelations(LONG* n_relations); |
189 | 189 |
190 CONTENT_EXPORT STDMETHODIMP get_relation(LONG relation_index, | 190 CONTENT_EXPORT STDMETHODIMP get_relation(LONG relation_index, |
191 IAccessibleRelation** relation); | 191 IAccessibleRelation** relation); |
192 | 192 |
193 CONTENT_EXPORT STDMETHODIMP get_relations(LONG max_relations, | 193 CONTENT_EXPORT STDMETHODIMP get_relations(LONG max_relations, |
194 IAccessibleRelation** relations, | 194 IAccessibleRelation** relations, |
195 LONG* n_relations); | 195 LONG* n_relations); |
196 | 196 |
| 197 CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type); |
| 198 |
| 199 CONTENT_EXPORT STDMETHODIMP scrollToPoint( |
| 200 enum IA2CoordinateType coordinate_type, |
| 201 LONG x, |
| 202 LONG y); |
| 203 |
197 // IAccessible2 methods not implemented. | 204 // IAccessible2 methods not implemented. |
198 CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) { | 205 CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) { |
199 return E_NOTIMPL; | 206 return E_NOTIMPL; |
200 } | 207 } |
201 CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type) { | |
202 return E_NOTIMPL; | |
203 } | |
204 CONTENT_EXPORT STDMETHODIMP scrollToPoint( | |
205 enum IA2CoordinateType coordinate_type, | |
206 LONG x, | |
207 LONG y) { | |
208 return E_NOTIMPL; | |
209 } | |
210 CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level, | 208 CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level, |
211 LONG* similar_items_in_group, | 209 LONG* similar_items_in_group, |
212 LONG* position_in_group) { | 210 LONG* position_in_group) { |
213 return E_NOTIMPL; | 211 return E_NOTIMPL; |
214 } | 212 } |
215 CONTENT_EXPORT STDMETHODIMP get_localizedExtendedRole( | 213 CONTENT_EXPORT STDMETHODIMP get_localizedExtendedRole( |
216 BSTR* localized_extended_role) { | 214 BSTR* localized_extended_role) { |
217 return E_NOTIMPL; | 215 return E_NOTIMPL; |
218 } | 216 } |
219 CONTENT_EXPORT STDMETHODIMP get_nExtendedStates(LONG* n_extended_states) { | 217 CONTENT_EXPORT STDMETHODIMP get_nExtendedStates(LONG* n_extended_states) { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 BSTR* text); | 437 BSTR* text); |
440 | 438 |
441 CONTENT_EXPORT STDMETHODIMP get_newText(IA2TextSegment* new_text); | 439 CONTENT_EXPORT STDMETHODIMP get_newText(IA2TextSegment* new_text); |
442 | 440 |
443 CONTENT_EXPORT STDMETHODIMP get_oldText(IA2TextSegment* old_text); | 441 CONTENT_EXPORT STDMETHODIMP get_oldText(IA2TextSegment* old_text); |
444 | 442 |
445 CONTENT_EXPORT STDMETHODIMP get_offsetAtPoint(LONG x, LONG y, | 443 CONTENT_EXPORT STDMETHODIMP get_offsetAtPoint(LONG x, LONG y, |
446 enum IA2CoordinateType coord_type, | 444 enum IA2CoordinateType coord_type, |
447 LONG* offset); | 445 LONG* offset); |
448 | 446 |
| 447 CONTENT_EXPORT STDMETHODIMP scrollSubstringTo( |
| 448 LONG start_index, |
| 449 LONG end_index, |
| 450 enum IA2ScrollType scroll_type); |
| 451 |
| 452 CONTENT_EXPORT STDMETHODIMP scrollSubstringToPoint( |
| 453 LONG start_index, |
| 454 LONG end_index, |
| 455 enum IA2CoordinateType coordinate_type, |
| 456 LONG x, LONG y); |
| 457 |
| 458 CONTENT_EXPORT STDMETHODIMP addSelection(LONG start_offset, LONG end_offset); |
| 459 |
| 460 CONTENT_EXPORT STDMETHODIMP removeSelection(LONG selection_index); |
| 461 |
| 462 CONTENT_EXPORT STDMETHODIMP setCaretOffset(LONG offset); |
| 463 |
| 464 CONTENT_EXPORT STDMETHODIMP setSelection(LONG selection_index, |
| 465 LONG start_offset, |
| 466 LONG end_offset); |
| 467 |
449 // IAccessibleText methods not implemented. | 468 // IAccessibleText methods not implemented. |
450 CONTENT_EXPORT STDMETHODIMP addSelection(LONG start_offset, LONG end_offset) { | |
451 return E_NOTIMPL; | |
452 } | |
453 CONTENT_EXPORT STDMETHODIMP get_attributes(LONG offset, LONG* start_offset, | 469 CONTENT_EXPORT STDMETHODIMP get_attributes(LONG offset, LONG* start_offset, |
454 LONG* end_offset, | 470 LONG* end_offset, |
455 BSTR* text_attributes) { | 471 BSTR* text_attributes) { |
456 return E_NOTIMPL; | 472 return E_NOTIMPL; |
457 } | 473 } |
458 CONTENT_EXPORT STDMETHODIMP get_characterExtents(LONG offset, | 474 CONTENT_EXPORT STDMETHODIMP get_characterExtents(LONG offset, |
459 enum IA2CoordinateType coord_type, | 475 enum IA2CoordinateType coord_type, |
460 LONG* x, LONG* y, | 476 LONG* x, LONG* y, |
461 LONG* width, LONG* height) { | 477 LONG* width, LONG* height) { |
462 return E_NOTIMPL; | 478 return E_NOTIMPL; |
463 } | 479 } |
464 CONTENT_EXPORT STDMETHODIMP removeSelection(LONG selection_index) { | |
465 return E_NOTIMPL; | |
466 } | |
467 CONTENT_EXPORT STDMETHODIMP setCaretOffset(LONG offset) { | |
468 return E_NOTIMPL; | |
469 } | |
470 CONTENT_EXPORT STDMETHODIMP setSelection(LONG selection_index, | |
471 LONG start_offset, | |
472 LONG end_offset) { | |
473 return E_NOTIMPL; | |
474 } | |
475 CONTENT_EXPORT STDMETHODIMP scrollSubstringTo(LONG start_index, | |
476 LONG end_index, | |
477 enum IA2ScrollType scroll_type) { | |
478 return E_NOTIMPL; | |
479 } | |
480 CONTENT_EXPORT STDMETHODIMP scrollSubstringToPoint(LONG start_index, | |
481 LONG end_index, | |
482 enum IA2CoordinateType coordinate_type, | |
483 LONG x, LONG y) { | |
484 return E_NOTIMPL; | |
485 } | |
486 | 480 |
487 // | 481 // |
488 // IAccessibleValue methods. | 482 // IAccessibleValue methods. |
489 // | 483 // |
490 | 484 |
491 CONTENT_EXPORT STDMETHODIMP get_currentValue(VARIANT* value); | 485 CONTENT_EXPORT STDMETHODIMP get_currentValue(VARIANT* value); |
492 | 486 |
493 CONTENT_EXPORT STDMETHODIMP get_minimumValue(VARIANT* value); | 487 CONTENT_EXPORT STDMETHODIMP get_minimumValue(VARIANT* value); |
494 | 488 |
495 CONTENT_EXPORT STDMETHODIMP get_maximumValue(VARIANT* value); | 489 CONTENT_EXPORT STDMETHODIMP get_maximumValue(VARIANT* value); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 std::vector<BrowserAccessibilityRelation*> relations_; | 720 std::vector<BrowserAccessibilityRelation*> relations_; |
727 | 721 |
728 // Give BrowserAccessibility::Create access to our constructor. | 722 // Give BrowserAccessibility::Create access to our constructor. |
729 friend class BrowserAccessibility; | 723 friend class BrowserAccessibility; |
730 friend class BrowserAccessibilityRelation; | 724 friend class BrowserAccessibilityRelation; |
731 | 725 |
732 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 726 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
733 }; | 727 }; |
734 | 728 |
735 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 729 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |