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

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: Addressing Comments 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 virtual AccessibilityOptionalBool isAriaGrabbed() const { return OptionalBoo lUndefined; } 496 virtual AccessibilityOptionalBool isAriaGrabbed() const { return OptionalBoo lUndefined; }
497 virtual bool isPresentationalChildOfAriaRole() const { return false; } 497 virtual bool isPresentationalChildOfAriaRole() const { return false; }
498 virtual bool shouldFocusActiveDescendant() const { return false; } 498 virtual bool shouldFocusActiveDescendant() const { return false; }
499 bool supportsARIAAttributes() const; 499 bool supportsARIAAttributes() const;
500 virtual bool supportsARIADragging() const { return false; } 500 virtual bool supportsARIADragging() const { return false; }
501 virtual bool supportsARIADropping() const { return false; } 501 virtual bool supportsARIADropping() const { return false; }
502 virtual bool supportsARIAFlowTo() const { return false; } 502 virtual bool supportsARIAFlowTo() const { return false; }
503 virtual bool supportsARIAOwns() const { return false; } 503 virtual bool supportsARIAOwns() const { return false; }
504 bool supportsRangeValue() const; 504 bool supportsRangeValue() const;
505 virtual SortDirection sortDirection() const { return SortDirectionUndefined; } 505 virtual SortDirection sortDirection() const { return SortDirectionUndefined; }
506 virtual int posInSet() const { return 0; }
507 virtual int setSize() const { return 0; }
508 bool supportssetSizePosInSet() const;
506 509
507 // ARIA trees. 510 // ARIA trees.
508 // Used by an ARIA tree to get all its rows. 511 // Used by an ARIA tree to get all its rows.
509 void ariaTreeRows(AccessibilityChildrenVector&); 512 void ariaTreeRows(AccessibilityChildrenVector&);
510 513
511 // ARIA live-region features. 514 // ARIA live-region features.
512 bool isLiveRegion() const; 515 bool isLiveRegion() const;
513 const AXObject* liveRegionRoot() const; 516 const AXObject* liveRegionRoot() const;
514 virtual const AtomicString& liveRegionStatus() const { return nullAtom; } 517 virtual const AtomicString& liveRegionStatus() const { return nullAtom; }
515 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; } 518 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 static bool includesARIAWidgetRole(const String&); 675 static bool includesARIAWidgetRole(const String&);
673 static bool hasInteractiveARIAAttribute(const Element&); 676 static bool hasInteractiveARIAAttribute(const Element&);
674 }; 677 };
675 678
676 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 679 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
677 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 680 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
678 681
679 } // namespace blink 682 } // namespace blink
680 683
681 #endif // AXObject_h 684 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698