| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 virtual bool isPresentationalChildOfAriaRole() const { return false; } | 551 virtual bool isPresentationalChildOfAriaRole() const { return false; } |
| 552 virtual bool shouldFocusActiveDescendant() const { return false; } | 552 virtual bool shouldFocusActiveDescendant() const { return false; } |
| 553 bool supportsARIAAttributes() const; | 553 bool supportsARIAAttributes() const; |
| 554 virtual bool supportsARIADragging() const { return false; } | 554 virtual bool supportsARIADragging() const { return false; } |
| 555 virtual bool supportsARIADropping() const { return false; } | 555 virtual bool supportsARIADropping() const { return false; } |
| 556 virtual bool supportsARIAFlowTo() const { return false; } | 556 virtual bool supportsARIAFlowTo() const { return false; } |
| 557 virtual bool supportsARIAOwns() const { return false; } | 557 virtual bool supportsARIAOwns() const { return false; } |
| 558 bool supportsRangeValue() const; | 558 bool supportsRangeValue() const; |
| 559 virtual SortDirection sortDirection() const { return SortDirectionUndefined;
} | 559 virtual SortDirection sortDirection() const { return SortDirectionUndefined;
} |
| 560 | 560 |
| 561 // Returns 0-based index. |
| 562 int indexInParent() const; |
| 563 |
| 564 // Returns 1-based position in set. |
| 565 virtual int posInSet() const { return 0; } |
| 566 virtual int setSize() const { return 0; } |
| 567 bool supportsSetSizeAndPosInSet() const; |
| 568 |
| 561 // ARIA trees. | 569 // ARIA trees. |
| 562 // Used by an ARIA tree to get all its rows. | 570 // Used by an ARIA tree to get all its rows. |
| 563 void ariaTreeRows(AccessibilityChildrenVector&); | 571 void ariaTreeRows(AccessibilityChildrenVector&); |
| 564 | 572 |
| 565 // ARIA live-region features. | 573 // ARIA live-region features. |
| 566 bool isLiveRegion() const; | 574 bool isLiveRegion() const; |
| 567 const AXObject* liveRegionRoot() const; | 575 const AXObject* liveRegionRoot() const; |
| 568 virtual const AtomicString& liveRegionStatus() const { return nullAtom; } | 576 virtual const AtomicString& liveRegionStatus() const { return nullAtom; } |
| 569 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; } | 577 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; } |
| 570 virtual bool liveRegionAtomic() const { return false; } | 578 virtual bool liveRegionAtomic() const { return false; } |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 static bool includesARIAWidgetRole(const String&); | 725 static bool includesARIAWidgetRole(const String&); |
| 718 static bool hasInteractiveARIAAttribute(const Element&); | 726 static bool hasInteractiveARIAAttribute(const Element&); |
| 719 }; | 727 }; |
| 720 | 728 |
| 721 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 729 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 722 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 730 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 723 | 731 |
| 724 } // namespace blink | 732 } // namespace blink |
| 725 | 733 |
| 726 #endif // AXObject_h | 734 #endif // AXObject_h |
| OLD | NEW |