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

Side by Side Diff: Source/modules/accessibility/AXObject.h

Issue 1071483002: Implement aria properties setsize and posinset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments incorporated Created 5 years, 8 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
OLDNEW
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 virtual AccessibilityOptionalBool isAriaGrabbed() const { return OptionalBoo lUndefined; } 550 virtual AccessibilityOptionalBool isAriaGrabbed() const { return OptionalBoo lUndefined; }
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 int indexInParent() const;
dmazzoni 2015/04/16 17:19:48 Add a comment saying this is 0-based.
561 virtual int posInSet() const { return 0; }
dmazzoni 2015/04/16 17:19:48 Add a comment saying that this is the 1-based posi
562 virtual int setSize() const { return 0; }
563 bool supportsSetSizeAndPosInSet() const;
560 564
561 // ARIA trees. 565 // ARIA trees.
562 // Used by an ARIA tree to get all its rows. 566 // Used by an ARIA tree to get all its rows.
563 void ariaTreeRows(AccessibilityChildrenVector&); 567 void ariaTreeRows(AccessibilityChildrenVector&);
564 568
565 // ARIA live-region features. 569 // ARIA live-region features.
566 bool isLiveRegion() const; 570 bool isLiveRegion() const;
567 const AXObject* liveRegionRoot() const; 571 const AXObject* liveRegionRoot() const;
568 virtual const AtomicString& liveRegionStatus() const { return nullAtom; } 572 virtual const AtomicString& liveRegionStatus() const { return nullAtom; }
569 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; } 573 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 static bool includesARIAWidgetRole(const String&); 721 static bool includesARIAWidgetRole(const String&);
718 static bool hasInteractiveARIAAttribute(const Element&); 722 static bool hasInteractiveARIAAttribute(const Element&);
719 }; 723 };
720 724
721 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 725 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
722 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 726 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
723 727
724 } // namespace blink 728 } // namespace blink
725 729
726 #endif // AXObject_h 730 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698