| 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 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 | 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 CONTENT_EXPORT STDMETHODIMP get_accDescription(VARIANT var_id, BSTR* desc); | 137 CONTENT_EXPORT STDMETHODIMP get_accDescription(VARIANT var_id, BSTR* desc); |
| 138 | 138 |
| 139 // Retrieves the object that has the keyboard focus. | 139 // Retrieves the object that has the keyboard focus. |
| 140 CONTENT_EXPORT STDMETHODIMP get_accFocus(VARIANT* focus_child); | 140 CONTENT_EXPORT STDMETHODIMP get_accFocus(VARIANT* focus_child); |
| 141 | 141 |
| 142 // Retrieves the help information associated with the object. | 142 // Retrieves the help information associated with the object. |
| 143 CONTENT_EXPORT STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* heflp); | 143 CONTENT_EXPORT STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* heflp); |
| 144 | 144 |
| 145 // Retrieves the specified object's shortcut. | 145 // Retrieves the specified object's shortcut. |
| 146 CONTENT_EXPORT STDMETHODIMP get_accKeyboardShortcut(VARIANT var_id, | 146 CONTENT_EXPORT STDMETHODIMP get_accKeyboardShortcut(VARIANT var_id, |
| 147 BSTR* access_key); | 147 BSTR* access_key); |
| 148 | 148 |
| 149 // Retrieves the name of the specified object. | 149 // Retrieves the name of the specified object. |
| 150 CONTENT_EXPORT STDMETHODIMP get_accName(VARIANT var_id, BSTR* name); | 150 CONTENT_EXPORT STDMETHODIMP get_accName(VARIANT var_id, BSTR* name); |
| 151 | 151 |
| 152 // Retrieves the IDispatch interface of the object's parent. | 152 // Retrieves the IDispatch interface of the object's parent. |
| 153 CONTENT_EXPORT STDMETHODIMP get_accParent(IDispatch** disp_parent); | 153 CONTENT_EXPORT STDMETHODIMP get_accParent(IDispatch** disp_parent); |
| 154 | 154 |
| 155 // Retrieves information describing the role of the specified object. | 155 // Retrieves information describing the role of the specified object. |
| 156 CONTENT_EXPORT STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); | 156 CONTENT_EXPORT STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); |
| 157 | 157 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 // Get this object's index in its parent object. | 202 // Get this object's index in its parent object. |
| 203 CONTENT_EXPORT STDMETHODIMP get_indexInParent(LONG* index_in_parent); | 203 CONTENT_EXPORT STDMETHODIMP get_indexInParent(LONG* index_in_parent); |
| 204 | 204 |
| 205 CONTENT_EXPORT STDMETHODIMP get_nRelations(LONG* n_relations); | 205 CONTENT_EXPORT STDMETHODIMP get_nRelations(LONG* n_relations); |
| 206 | 206 |
| 207 CONTENT_EXPORT STDMETHODIMP get_relation(LONG relation_index, | 207 CONTENT_EXPORT STDMETHODIMP get_relation(LONG relation_index, |
| 208 IAccessibleRelation** relation); | 208 IAccessibleRelation** relation); |
| 209 | 209 |
| 210 CONTENT_EXPORT STDMETHODIMP get_relations(LONG max_relations, | 210 CONTENT_EXPORT STDMETHODIMP get_relations(LONG max_relations, |
| 211 IAccessibleRelation** relations, | 211 IAccessibleRelation** relations, |
| 212 LONG* n_relations); | 212 LONG* n_relations); |
| 213 | 213 |
| 214 CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type); | 214 CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type); |
| 215 | 215 |
| 216 CONTENT_EXPORT STDMETHODIMP scrollToPoint( | 216 CONTENT_EXPORT STDMETHODIMP scrollToPoint( |
| 217 enum IA2CoordinateType coordinate_type, | 217 enum IA2CoordinateType coordinate_type, |
| 218 LONG x, | 218 LONG x, |
| 219 LONG y); | 219 LONG y); |
| 220 | 220 |
| 221 CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level, | 221 CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level, |
| 222 LONG* similar_items_in_group, | 222 LONG* similar_items_in_group, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 CONTENT_EXPORT STDMETHODIMP get_nSelectedRows(long *row_count); | 303 CONTENT_EXPORT STDMETHODIMP get_nSelectedRows(long *row_count); |
| 304 | 304 |
| 305 CONTENT_EXPORT STDMETHODIMP get_rowDescription(long row, | 305 CONTENT_EXPORT STDMETHODIMP get_rowDescription(long row, |
| 306 BSTR* description); | 306 BSTR* description); |
| 307 | 307 |
| 308 CONTENT_EXPORT STDMETHODIMP get_rowExtentAt(long row, | 308 CONTENT_EXPORT STDMETHODIMP get_rowExtentAt(long row, |
| 309 long column, | 309 long column, |
| 310 long* n_rows_spanned); | 310 long* n_rows_spanned); |
| 311 | 311 |
| 312 CONTENT_EXPORT STDMETHODIMP get_rowHeader(IAccessibleTable **accessible_table, | 312 CONTENT_EXPORT STDMETHODIMP get_rowHeader(IAccessibleTable** accessible_table, |
| 313 long* starting_column_index); | 313 long* starting_column_index); |
| 314 | 314 |
| 315 CONTENT_EXPORT STDMETHODIMP get_rowIndex(long cell_index, | 315 CONTENT_EXPORT STDMETHODIMP get_rowIndex(long cell_index, |
| 316 long* row_index); | 316 long* row_index); |
| 317 | 317 |
| 318 CONTENT_EXPORT STDMETHODIMP get_selectedChildren(long max_children, | 318 CONTENT_EXPORT STDMETHODIMP get_selectedChildren(long max_children, |
| 319 long** children, | 319 long** children, |
| 320 long* n_children); | 320 long* n_children); |
| 321 | 321 |
| 322 CONTENT_EXPORT STDMETHODIMP get_selectedColumns(long max_columns, | 322 CONTENT_EXPORT STDMETHODIMP get_selectedColumns(long max_columns, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 CONTENT_EXPORT STDMETHODIMP get_nCharacters(LONG* n_characters); | 425 CONTENT_EXPORT STDMETHODIMP get_nCharacters(LONG* n_characters); |
| 426 | 426 |
| 427 CONTENT_EXPORT STDMETHODIMP get_caretOffset(LONG* offset); | 427 CONTENT_EXPORT STDMETHODIMP get_caretOffset(LONG* offset); |
| 428 | 428 |
| 429 CONTENT_EXPORT STDMETHODIMP get_nSelections(LONG* n_selections); | 429 CONTENT_EXPORT STDMETHODIMP get_nSelections(LONG* n_selections); |
| 430 | 430 |
| 431 CONTENT_EXPORT STDMETHODIMP get_selection(LONG selection_index, | 431 CONTENT_EXPORT STDMETHODIMP get_selection(LONG selection_index, |
| 432 LONG* start_offset, | 432 LONG* start_offset, |
| 433 LONG* end_offset); | 433 LONG* end_offset); |
| 434 | 434 |
| 435 CONTENT_EXPORT STDMETHODIMP get_text(LONG start_offset, LONG end_offset, | 435 CONTENT_EXPORT STDMETHODIMP get_text(LONG start_offset, |
| 436 LONG end_offset, |
| 436 BSTR* text); | 437 BSTR* text); |
| 437 | 438 |
| 438 CONTENT_EXPORT STDMETHODIMP get_textAtOffset( | 439 CONTENT_EXPORT STDMETHODIMP get_textAtOffset( |
| 439 LONG offset, | 440 LONG offset, |
| 440 enum IA2TextBoundaryType boundary_type, | 441 enum IA2TextBoundaryType boundary_type, |
| 441 LONG* start_offset, LONG* end_offset, | 442 LONG* start_offset, |
| 443 LONG* end_offset, |
| 442 BSTR* text); | 444 BSTR* text); |
| 443 | 445 |
| 444 CONTENT_EXPORT STDMETHODIMP get_textBeforeOffset( | 446 CONTENT_EXPORT STDMETHODIMP get_textBeforeOffset( |
| 445 LONG offset, | 447 LONG offset, |
| 446 enum IA2TextBoundaryType boundary_type, | 448 enum IA2TextBoundaryType boundary_type, |
| 447 LONG* start_offset, LONG* end_offset, | 449 LONG* start_offset, |
| 450 LONG* end_offset, |
| 448 BSTR* text); | 451 BSTR* text); |
| 449 | 452 |
| 450 CONTENT_EXPORT STDMETHODIMP get_textAfterOffset( | 453 CONTENT_EXPORT STDMETHODIMP get_textAfterOffset( |
| 451 LONG offset, | 454 LONG offset, |
| 452 enum IA2TextBoundaryType boundary_type, | 455 enum IA2TextBoundaryType boundary_type, |
| 453 LONG* start_offset, LONG* end_offset, | 456 LONG* start_offset, |
| 457 LONG* end_offset, |
| 454 BSTR* text); | 458 BSTR* text); |
| 455 | 459 |
| 456 CONTENT_EXPORT STDMETHODIMP get_newText(IA2TextSegment* new_text); | 460 CONTENT_EXPORT STDMETHODIMP get_newText(IA2TextSegment* new_text); |
| 457 | 461 |
| 458 CONTENT_EXPORT STDMETHODIMP get_oldText(IA2TextSegment* old_text); | 462 CONTENT_EXPORT STDMETHODIMP get_oldText(IA2TextSegment* old_text); |
| 459 | 463 |
| 460 CONTENT_EXPORT STDMETHODIMP get_offsetAtPoint(LONG x, LONG y, | 464 CONTENT_EXPORT STDMETHODIMP get_offsetAtPoint( |
| 465 LONG x, |
| 466 LONG y, |
| 461 enum IA2CoordinateType coord_type, | 467 enum IA2CoordinateType coord_type, |
| 462 LONG* offset); | 468 LONG* offset); |
| 463 | 469 |
| 464 CONTENT_EXPORT STDMETHODIMP scrollSubstringTo( | 470 CONTENT_EXPORT STDMETHODIMP scrollSubstringTo( |
| 465 LONG start_index, | 471 LONG start_index, |
| 466 LONG end_index, | 472 LONG end_index, |
| 467 enum IA2ScrollType scroll_type); | 473 enum IA2ScrollType scroll_type); |
| 468 | 474 |
| 469 CONTENT_EXPORT STDMETHODIMP scrollSubstringToPoint( | 475 CONTENT_EXPORT STDMETHODIMP scrollSubstringToPoint( |
| 470 LONG start_index, | 476 LONG start_index, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 483 LONG end_offset); | 489 LONG end_offset); |
| 484 | 490 |
| 485 // IAccessibleText methods not implemented. | 491 // IAccessibleText methods not implemented. |
| 486 CONTENT_EXPORT STDMETHODIMP get_attributes(LONG offset, LONG* start_offset, | 492 CONTENT_EXPORT STDMETHODIMP get_attributes(LONG offset, LONG* start_offset, |
| 487 LONG* end_offset, | 493 LONG* end_offset, |
| 488 BSTR* text_attributes) { | 494 BSTR* text_attributes) { |
| 489 return E_NOTIMPL; | 495 return E_NOTIMPL; |
| 490 } | 496 } |
| 491 CONTENT_EXPORT STDMETHODIMP get_characterExtents(LONG offset, | 497 CONTENT_EXPORT STDMETHODIMP get_characterExtents(LONG offset, |
| 492 enum IA2CoordinateType coord_type, | 498 enum IA2CoordinateType coord_type, |
| 493 LONG* x, LONG* y, | 499 LONG* x, |
| 494 LONG* width, LONG* height) { | 500 LONG* y, |
| 501 LONG* width, |
| 502 LONG* height) { |
| 495 return E_NOTIMPL; | 503 return E_NOTIMPL; |
| 496 } | 504 } |
| 497 | 505 |
| 498 // | 506 // |
| 499 // IAccessibleHypertext methods. | 507 // IAccessibleHypertext methods. |
| 500 // | 508 // |
| 501 | 509 |
| 502 CONTENT_EXPORT STDMETHODIMP get_nHyperlinks(long* hyperlink_count); | 510 CONTENT_EXPORT STDMETHODIMP get_nHyperlinks(long* hyperlink_count); |
| 503 | 511 |
| 504 CONTENT_EXPORT STDMETHODIMP get_hyperlink( | 512 CONTENT_EXPORT STDMETHODIMP get_hyperlink(long index, |
| 505 long index, | 513 IAccessibleHyperlink** hyperlink); |
| 506 IAccessibleHyperlink** hyperlink); | |
| 507 | 514 |
| 508 CONTENT_EXPORT STDMETHODIMP get_hyperlinkIndex(long char_index, | 515 CONTENT_EXPORT STDMETHODIMP get_hyperlinkIndex(long char_index, |
| 509 long* hyperlink_index); | 516 long* hyperlink_index); |
| 510 | 517 |
| 511 // IAccessibleHyperlink not implemented. | 518 // IAccessibleHyperlink not implemented. |
| 512 CONTENT_EXPORT STDMETHODIMP get_anchor(long index, VARIANT* anchor) { | 519 CONTENT_EXPORT STDMETHODIMP get_anchor(long index, VARIANT* anchor) { |
| 513 return E_NOTIMPL; | 520 return E_NOTIMPL; |
| 514 } | 521 } |
| 515 CONTENT_EXPORT STDMETHODIMP get_anchorTarget( | 522 CONTENT_EXPORT STDMETHODIMP get_anchorTarget(long index, |
| 516 long index, | 523 VARIANT* anchor_target) { |
| 517 VARIANT* anchor_target) { | |
| 518 return E_NOTIMPL; | 524 return E_NOTIMPL; |
| 519 } | 525 } |
| 520 CONTENT_EXPORT STDMETHODIMP get_startIndex( long* index) { | 526 CONTENT_EXPORT STDMETHODIMP get_startIndex( long* index) { |
| 521 return E_NOTIMPL; | 527 return E_NOTIMPL; |
| 522 } | 528 } |
| 523 CONTENT_EXPORT STDMETHODIMP get_endIndex( long* index) { | 529 CONTENT_EXPORT STDMETHODIMP get_endIndex( long* index) { |
| 524 return E_NOTIMPL; | 530 return E_NOTIMPL; |
| 525 } | 531 } |
| 526 CONTENT_EXPORT STDMETHODIMP get_valid(boolean* valid) { | 532 CONTENT_EXPORT STDMETHODIMP get_valid(boolean* valid) { |
| 527 return E_NOTIMPL; | 533 return E_NOTIMPL; |
| 528 } | 534 } |
| 529 | 535 |
| 530 // IAccessibleAction not implemented. | 536 // IAccessibleAction not implemented. |
| 531 CONTENT_EXPORT STDMETHODIMP nActions(long* n_actions) { | 537 CONTENT_EXPORT STDMETHODIMP nActions(long* n_actions) { |
| 532 return E_NOTIMPL; | 538 return E_NOTIMPL; |
| 533 } | 539 } |
| 534 CONTENT_EXPORT STDMETHODIMP doAction(long action_index) { | 540 CONTENT_EXPORT STDMETHODIMP doAction(long action_index) { |
| 535 return E_NOTIMPL; | 541 return E_NOTIMPL; |
| 536 } | 542 } |
| 537 CONTENT_EXPORT STDMETHODIMP get_description( | 543 CONTENT_EXPORT STDMETHODIMP get_description(long action_index, |
| 538 long action_index, | 544 BSTR* description) { |
| 539 BSTR* description) { | |
| 540 return E_NOTIMPL; | 545 return E_NOTIMPL; |
| 541 } | 546 } |
| 542 CONTENT_EXPORT STDMETHODIMP get_keyBinding( | 547 CONTENT_EXPORT STDMETHODIMP get_keyBinding(long action_index, |
| 543 long action_index, | 548 long n_max_bindings, |
| 544 long n_max_bindings, | 549 BSTR** key_bindings, |
| 545 BSTR** key_bindings, | 550 long* n_bindings) { |
| 546 long* n_bindings) { | |
| 547 return E_NOTIMPL; | 551 return E_NOTIMPL; |
| 548 } | 552 } |
| 549 CONTENT_EXPORT STDMETHODIMP get_name(long action_index, BSTR* name) { | 553 CONTENT_EXPORT STDMETHODIMP get_name(long action_index, BSTR* name) { |
| 550 return E_NOTIMPL; | 554 return E_NOTIMPL; |
| 551 } | 555 } |
| 552 CONTENT_EXPORT STDMETHODIMP get_localizedName( | 556 CONTENT_EXPORT STDMETHODIMP get_localizedName(long action_index, |
| 553 long action_index, | 557 BSTR* localized_name) { |
| 554 BSTR* localized_name) { | |
| 555 return E_NOTIMPL; | 558 return E_NOTIMPL; |
| 556 } | 559 } |
| 557 | 560 |
| 558 // | 561 // |
| 559 // IAccessibleValue methods. | 562 // IAccessibleValue methods. |
| 560 // | 563 // |
| 561 | 564 |
| 562 CONTENT_EXPORT STDMETHODIMP get_currentValue(VARIANT* value); | 565 CONTENT_EXPORT STDMETHODIMP get_currentValue(VARIANT* value); |
| 563 | 566 |
| 564 CONTENT_EXPORT STDMETHODIMP get_minimumValue(VARIANT* value); | 567 CONTENT_EXPORT STDMETHODIMP get_minimumValue(VARIANT* value); |
| 565 | 568 |
| 566 CONTENT_EXPORT STDMETHODIMP get_maximumValue(VARIANT* value); | 569 CONTENT_EXPORT STDMETHODIMP get_maximumValue(VARIANT* value); |
| 567 | 570 |
| 568 CONTENT_EXPORT STDMETHODIMP setCurrentValue(VARIANT new_value); | 571 CONTENT_EXPORT STDMETHODIMP setCurrentValue(VARIANT new_value); |
| 569 | 572 |
| 570 // | 573 // |
| 571 // ISimpleDOMDocument methods. | 574 // ISimpleDOMDocument methods. |
| 572 // | 575 // |
| 573 | 576 |
| 574 CONTENT_EXPORT STDMETHODIMP get_URL(BSTR* url); | 577 CONTENT_EXPORT STDMETHODIMP get_URL(BSTR* url); |
| 575 | 578 |
| 576 CONTENT_EXPORT STDMETHODIMP get_title(BSTR* title); | 579 CONTENT_EXPORT STDMETHODIMP get_title(BSTR* title); |
| 577 | 580 |
| 578 CONTENT_EXPORT STDMETHODIMP get_mimeType(BSTR* mime_type); | 581 CONTENT_EXPORT STDMETHODIMP get_mimeType(BSTR* mime_type); |
| 579 | 582 |
| 580 CONTENT_EXPORT STDMETHODIMP get_docType(BSTR* doc_type); | 583 CONTENT_EXPORT STDMETHODIMP get_docType(BSTR* doc_type); |
| 581 | 584 |
| 582 CONTENT_EXPORT STDMETHODIMP get_nameSpaceURIForID( | 585 CONTENT_EXPORT STDMETHODIMP get_nameSpaceURIForID(short name_space_id, |
| 583 short name_space_id, BSTR *name_space_uri) { | 586 BSTR *name_space_uri) { |
| 584 return E_NOTIMPL; | 587 return E_NOTIMPL; |
| 585 } | 588 } |
| 586 CONTENT_EXPORT STDMETHODIMP put_alternateViewMediaTypes( | 589 CONTENT_EXPORT STDMETHODIMP put_alternateViewMediaTypes( |
| 587 BSTR *comma_separated_media_types) { | 590 BSTR* comma_separated_media_types) { |
| 588 return E_NOTIMPL; | 591 return E_NOTIMPL; |
| 589 } | 592 } |
| 590 | 593 |
| 591 // | 594 // |
| 592 // ISimpleDOMNode methods. | 595 // ISimpleDOMNode methods. |
| 593 // | 596 // |
| 594 | 597 |
| 595 CONTENT_EXPORT STDMETHODIMP get_nodeInfo( | 598 CONTENT_EXPORT STDMETHODIMP get_nodeInfo(BSTR* node_name, |
| 596 BSTR* node_name, | 599 short* name_space_id, |
| 597 short* name_space_id, | 600 BSTR* node_value, |
| 598 BSTR* node_value, | 601 unsigned int* num_children, |
| 599 unsigned int* num_children, | 602 unsigned int* unique_id, |
| 600 unsigned int* unique_id, | 603 unsigned short* node_type); |
| 601 unsigned short* node_type); | |
| 602 | 604 |
| 603 CONTENT_EXPORT STDMETHODIMP get_attributes( | 605 CONTENT_EXPORT STDMETHODIMP get_attributes(unsigned short max_attribs, |
| 604 unsigned short max_attribs, | 606 BSTR* attrib_names, |
| 605 BSTR* attrib_names, | 607 short* name_space_id, |
| 606 short* name_space_id, | 608 BSTR* attrib_values, |
| 607 BSTR* attrib_values, | 609 unsigned short* num_attribs); |
| 608 unsigned short* num_attribs); | |
| 609 | 610 |
| 610 CONTENT_EXPORT STDMETHODIMP get_attributesForNames( | 611 CONTENT_EXPORT STDMETHODIMP get_attributesForNames( |
| 611 unsigned short num_attribs, | 612 unsigned short num_attribs, |
| 612 BSTR* attrib_names, | 613 BSTR* attrib_names, |
| 613 short* name_space_id, | 614 short* name_space_id, |
| 614 BSTR* attrib_values); | 615 BSTR* attrib_values); |
| 615 | 616 |
| 616 CONTENT_EXPORT STDMETHODIMP get_computedStyle( | 617 CONTENT_EXPORT STDMETHODIMP get_computedStyle( |
| 617 unsigned short max_style_properties, | 618 unsigned short max_style_properties, |
| 618 boolean use_alternate_view, | 619 boolean use_alternate_view, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 631 CONTENT_EXPORT STDMETHODIMP get_parentNode(ISimpleDOMNode** node); | 632 CONTENT_EXPORT STDMETHODIMP get_parentNode(ISimpleDOMNode** node); |
| 632 | 633 |
| 633 CONTENT_EXPORT STDMETHODIMP get_firstChild(ISimpleDOMNode** node); | 634 CONTENT_EXPORT STDMETHODIMP get_firstChild(ISimpleDOMNode** node); |
| 634 | 635 |
| 635 CONTENT_EXPORT STDMETHODIMP get_lastChild(ISimpleDOMNode** node); | 636 CONTENT_EXPORT STDMETHODIMP get_lastChild(ISimpleDOMNode** node); |
| 636 | 637 |
| 637 CONTENT_EXPORT STDMETHODIMP get_previousSibling(ISimpleDOMNode** node); | 638 CONTENT_EXPORT STDMETHODIMP get_previousSibling(ISimpleDOMNode** node); |
| 638 | 639 |
| 639 CONTENT_EXPORT STDMETHODIMP get_nextSibling(ISimpleDOMNode** node); | 640 CONTENT_EXPORT STDMETHODIMP get_nextSibling(ISimpleDOMNode** node); |
| 640 | 641 |
| 641 CONTENT_EXPORT STDMETHODIMP get_childAt( | 642 CONTENT_EXPORT STDMETHODIMP get_childAt(unsigned int child_index, |
| 642 unsigned int child_index, | 643 ISimpleDOMNode** node); |
| 643 ISimpleDOMNode** node); | |
| 644 | 644 |
| 645 CONTENT_EXPORT STDMETHODIMP get_innerHTML(BSTR* innerHTML) { | 645 CONTENT_EXPORT STDMETHODIMP get_innerHTML(BSTR* innerHTML) { |
| 646 return E_NOTIMPL; | 646 return E_NOTIMPL; |
| 647 } | 647 } |
| 648 | 648 |
| 649 CONTENT_EXPORT STDMETHODIMP get_localInterface(void** local_interface) { | 649 CONTENT_EXPORT STDMETHODIMP get_localInterface(void** local_interface) { |
| 650 return E_NOTIMPL; | 650 return E_NOTIMPL; |
| 651 } | 651 } |
| 652 | 652 |
| 653 CONTENT_EXPORT STDMETHODIMP get_language(BSTR* language) { | 653 CONTENT_EXPORT STDMETHODIMP get_language(BSTR* language) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 673 CONTENT_EXPORT STDMETHODIMP get_unclippedSubstringBounds( | 673 CONTENT_EXPORT STDMETHODIMP get_unclippedSubstringBounds( |
| 674 unsigned int start_index, | 674 unsigned int start_index, |
| 675 unsigned int end_index, | 675 unsigned int end_index, |
| 676 int* x, | 676 int* x, |
| 677 int* y, | 677 int* y, |
| 678 int* width, | 678 int* width, |
| 679 int* height) { | 679 int* height) { |
| 680 return E_NOTIMPL; | 680 return E_NOTIMPL; |
| 681 } | 681 } |
| 682 | 682 |
| 683 CONTENT_EXPORT STDMETHODIMP scrollToSubstring( | 683 CONTENT_EXPORT STDMETHODIMP scrollToSubstring(unsigned int start_index, |
| 684 unsigned int start_index, | 684 unsigned int end_index) { |
| 685 unsigned int end_index) { | |
| 686 return E_NOTIMPL; | 685 return E_NOTIMPL; |
| 687 } | 686 } |
| 688 | 687 |
| 689 CONTENT_EXPORT STDMETHODIMP get_fontFamily(BSTR *font_family) { | 688 CONTENT_EXPORT STDMETHODIMP get_fontFamily(BSTR *font_family) { |
| 690 return E_NOTIMPL; | 689 return E_NOTIMPL; |
| 691 } | 690 } |
| 692 | 691 |
| 693 // | 692 // |
| 694 // IServiceProvider methods. | 693 // IServiceProvider methods. |
| 695 // | 694 // |
| 696 | 695 |
| 697 CONTENT_EXPORT STDMETHODIMP QueryService(REFGUID guidService, REFIID riid, | 696 CONTENT_EXPORT STDMETHODIMP QueryService(REFGUID guidService, |
| 698 void** object); | 697 REFIID riid, |
| 698 void** object); |
| 699 | 699 |
| 700 // IAccessibleEx methods not implemented. | 700 // IAccessibleEx methods not implemented. |
| 701 CONTENT_EXPORT STDMETHODIMP GetObjectForChild(long child_id, | 701 CONTENT_EXPORT STDMETHODIMP GetObjectForChild(long child_id, |
| 702 IAccessibleEx** ret) { | 702 IAccessibleEx** ret) { |
| 703 return E_NOTIMPL; | 703 return E_NOTIMPL; |
| 704 } | 704 } |
| 705 | 705 |
| 706 CONTENT_EXPORT STDMETHODIMP GetIAccessiblePair(IAccessible** acc, | 706 CONTENT_EXPORT STDMETHODIMP GetIAccessiblePair(IAccessible** acc, |
| 707 long* child_id) { | 707 long* child_id) { |
| 708 return E_NOTIMPL; | 708 return E_NOTIMPL; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 736 | 736 |
| 737 CONTENT_EXPORT STDMETHODIMP get_HostRawElementProvider( | 737 CONTENT_EXPORT STDMETHODIMP get_HostRawElementProvider( |
| 738 IRawElementProviderSimple** provider) { | 738 IRawElementProviderSimple** provider) { |
| 739 return E_NOTIMPL; | 739 return E_NOTIMPL; |
| 740 } | 740 } |
| 741 | 741 |
| 742 // | 742 // |
| 743 // CComObjectRootEx methods. | 743 // CComObjectRootEx methods. |
| 744 // | 744 // |
| 745 | 745 |
| 746 CONTENT_EXPORT HRESULT WINAPI InternalQueryInterface(void* this_ptr, | 746 CONTENT_EXPORT HRESULT WINAPI InternalQueryInterface( |
| 747 void* this_ptr, |
| 747 const _ATL_INTMAP_ENTRY* entries, | 748 const _ATL_INTMAP_ENTRY* entries, |
| 748 REFIID iid, | 749 REFIID iid, |
| 749 void** object); | 750 void** object); |
| 750 | 751 |
| 751 // Accessors. | 752 // Accessors. |
| 752 int32 ia_role() const { return ia_role_; } | 753 int32 ia_role() const { return ia_role_; } |
| 753 int32 ia_state() const { return ia_state_; } | 754 int32 ia_state() const { return ia_state_; } |
| 754 int32 ia2_role() const { return ia2_role_; } | 755 int32 ia2_role() const { return ia2_role_; } |
| 755 int32 ia2_state() const { return ia2_state_; } | 756 int32 ia2_state() const { return ia2_state_; } |
| 756 const std::vector<string16>& ia2_attributes() const { | 757 const std::vector<string16>& ia2_attributes() const { |
| 757 return ia2_attributes_;\ | 758 return ia2_attributes_; |
| 758 } | 759 } |
| 759 | 760 |
| 760 private: | 761 private: |
| 761 // Add one to the reference count and return the same object. Always | 762 // Add one to the reference count and return the same object. Always |
| 762 // use this method when returning a BrowserAccessibilityWin object as | 763 // use this method when returning a BrowserAccessibilityWin object as |
| 763 // an output parameter to a COM interface, never use it otherwise. | 764 // an output parameter to a COM interface, never use it otherwise. |
| 764 BrowserAccessibilityWin* NewReference(); | 765 BrowserAccessibilityWin* NewReference(); |
| 765 | 766 |
| 766 // Many MSAA methods take a var_id parameter indicating that the operation | 767 // Many MSAA methods take a var_id parameter indicating that the operation |
| 767 // should be performed on a particular child ID, rather than this object. | 768 // should be performed on a particular child ID, rather than this object. |
| 768 // This method tries to figure out the target object from |var_id| and | 769 // This method tries to figure out the target object from |var_id| and |
| 769 // returns a pointer to the target object if it exists, otherwise NULL. | 770 // returns a pointer to the target object if it exists, otherwise NULL. |
| 770 // Does not return a new reference. | 771 // Does not return a new reference. |
| 771 BrowserAccessibilityWin* GetTargetFromChildID(const VARIANT& var_id); | 772 BrowserAccessibilityWin* GetTargetFromChildID(const VARIANT& var_id); |
| 772 | 773 |
| 773 // Initialize the role and state metadata from the role enum and state | 774 // Initialize the role and state metadata from the role enum and state |
| 774 // bitmasks defined in AccessibilityNodeData. | 775 // bitmasks defined in AccessibilityNodeData. |
| 775 void InitRoleAndState(); | 776 void InitRoleAndState(); |
| 776 | 777 |
| 777 // Retrieve the value of an attribute from the string attribute map and | 778 // Retrieve the value of an attribute from the string attribute map and |
| 778 // if found and nonempty, allocate a new BSTR (with SysAllocString) | 779 // if found and nonempty, allocate a new BSTR (with SysAllocString) |
| 779 // and return S_OK. If not found or empty, return S_FALSE. | 780 // and return S_OK. If not found or empty, return S_FALSE. |
| 780 HRESULT GetStringAttributeAsBstr( | 781 HRESULT GetStringAttributeAsBstr( |
| 781 AccessibilityNodeData::StringAttribute attribute, BSTR* value_bstr); | 782 AccessibilityNodeData::StringAttribute attribute, |
| 783 BSTR* value_bstr); |
| 782 | 784 |
| 783 // If the string attribute |attribute| is present, add its value as an | 785 // If the string attribute |attribute| is present, add its value as an |
| 784 // IAccessible2 attribute with the name |ia2_attr|. | 786 // IAccessible2 attribute with the name |ia2_attr|. |
| 785 void StringAttributeToIA2( | 787 void StringAttributeToIA2(AccessibilityNodeData::StringAttribute attribute, |
| 786 AccessibilityNodeData::StringAttribute attribute, const char* ia2_attr); | 788 const char* ia2_attr); |
| 787 | 789 |
| 788 // If the bool attribute |attribute| is present, add its value as an | 790 // If the bool attribute |attribute| is present, add its value as an |
| 789 // IAccessible2 attribute with the name |ia2_attr|. | 791 // IAccessible2 attribute with the name |ia2_attr|. |
| 790 void BoolAttributeToIA2( | 792 void BoolAttributeToIA2(AccessibilityNodeData::BoolAttribute attribute, |
| 791 AccessibilityNodeData::BoolAttribute attribute, const char* ia2_attr); | 793 const char* ia2_attr); |
| 792 | 794 |
| 793 // If the int attribute |attribute| is present, add its value as an | 795 // If the int attribute |attribute| is present, add its value as an |
| 794 // IAccessible2 attribute with the name |ia2_attr|. | 796 // IAccessible2 attribute with the name |ia2_attr|. |
| 795 void IntAttributeToIA2( | 797 void IntAttributeToIA2(AccessibilityNodeData::IntAttribute attribute, |
| 796 AccessibilityNodeData::IntAttribute attribute, const char* ia2_attr); | 798 const char* ia2_attr); |
| 797 | 799 |
| 798 // Get the text of this node for the purposes of IAccessibleText - it may | 800 // Get the text of this node for the purposes of IAccessibleText - it may |
| 799 // be the name, it may be the value, etc. depending on the role. | 801 // be the name, it may be the value, etc. depending on the role. |
| 800 const string16& TextForIAccessibleText(); | 802 const string16& TextForIAccessibleText(); |
| 801 | 803 |
| 802 // If offset is a member of IA2TextSpecialOffsets this function updates the | 804 // If offset is a member of IA2TextSpecialOffsets this function updates the |
| 803 // value of offset and returns, otherwise offset remains unchanged. | 805 // value of offset and returns, otherwise offset remains unchanged. |
| 804 void HandleSpecialTextOffset(const string16& text, LONG* offset); | 806 void HandleSpecialTextOffset(const string16& text, LONG* offset); |
| 805 | 807 |
| 806 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. | 808 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 // Give BrowserAccessibility::Create access to our constructor. | 863 // Give BrowserAccessibility::Create access to our constructor. |
| 862 friend class BrowserAccessibility; | 864 friend class BrowserAccessibility; |
| 863 friend class BrowserAccessibilityRelation; | 865 friend class BrowserAccessibilityRelation; |
| 864 | 866 |
| 865 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 867 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
| 866 }; | 868 }; |
| 867 | 869 |
| 868 } // namespace content | 870 } // namespace content |
| 869 | 871 |
| 870 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 872 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |