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

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

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: esprehn comments and fix layout tests to use testharness.js Created 4 years, 5 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 enum AXIgnoredReason { 353 enum AXIgnoredReason {
354 AXActiveModalDialog, 354 AXActiveModalDialog,
355 AXAncestorDisallowsChild, 355 AXAncestorDisallowsChild,
356 AXAncestorIsLeafNode, 356 AXAncestorIsLeafNode,
357 AXAriaHidden, 357 AXAriaHidden,
358 AXAriaHiddenRoot, 358 AXAriaHiddenRoot,
359 AXEmptyAlt, 359 AXEmptyAlt,
360 AXEmptyText, 360 AXEmptyText,
361 AXInert, 361 AXInert,
362 AXInertRoot,
dmazzoni 2016/06/29 17:00:56 I wonder if AXInInertSubtree would be more clear (
362 AXInheritsPresentation, 363 AXInheritsPresentation,
363 AXLabelContainer, 364 AXLabelContainer,
364 AXLabelFor, 365 AXLabelFor,
365 AXNotRendered, 366 AXNotRendered,
366 AXNotVisible, 367 AXNotVisible,
367 AXPresentationalRole, 368 AXPresentationalRole,
368 AXProbablyPresentational, 369 AXProbablyPresentational,
369 AXStaticTextUsedAsNameFor, 370 AXStaticTextUsedAsNameFor,
370 AXUninteresting 371 AXUninteresting
371 }; 372 };
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 virtual bool canSetSelectedAttribute() const { return false; } 656 virtual bool canSetSelectedAttribute() const { return false; }
656 657
657 // Whether objects are ignored, i.e. not included in the tree. 658 // Whether objects are ignored, i.e. not included in the tree.
658 bool accessibilityIsIgnored() const; 659 bool accessibilityIsIgnored() const;
659 typedef HeapVector<IgnoredReason> IgnoredReasons; 660 typedef HeapVector<IgnoredReason> IgnoredReasons;
660 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const { return true; } 661 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const { return true; }
661 bool accessibilityIsIgnoredByDefault(IgnoredReasons* = nullptr) const; 662 bool accessibilityIsIgnoredByDefault(IgnoredReasons* = nullptr) const;
662 AXObjectInclusion accessibilityPlatformIncludesObject() const; 663 AXObjectInclusion accessibilityPlatformIncludesObject() const;
663 virtual AXObjectInclusion defaultObjectInclusion(IgnoredReasons* = nullptr) const; 664 virtual AXObjectInclusion defaultObjectInclusion(IgnoredReasons* = nullptr) const;
664 bool isInertOrAriaHidden() const; 665 bool isInertOrAriaHidden() const;
666 const AXObject* inertRoot() const;
665 const AXObject* ariaHiddenRoot() const; 667 const AXObject* ariaHiddenRoot() const;
666 bool computeIsInertOrAriaHidden(IgnoredReasons* = nullptr) const; 668 bool computeIsInertOrAriaHidden(IgnoredReasons* = nullptr) const;
667 bool isDescendantOfLeafNode() const; 669 bool isDescendantOfLeafNode() const;
668 AXObject* leafNodeAncestor() const; 670 AXObject* leafNodeAncestor() const;
669 bool isDescendantOfDisabledNode() const; 671 bool isDescendantOfDisabledNode() const;
670 const AXObject* disabledAncestor() const; 672 const AXObject* disabledAncestor() const;
671 bool lastKnownIsIgnoredValue(); 673 bool lastKnownIsIgnoredValue();
672 void setLastKnownIsIgnoredValue(bool); 674 void setLastKnownIsIgnoredValue(bool);
673 bool hasInheritedPresentationalRole() const; 675 bool hasInheritedPresentationalRole() const;
674 bool isPresentationalChild() const; 676 bool isPresentationalChild() const;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 998
997 static unsigned s_numberOfLiveAXObjects; 999 static unsigned s_numberOfLiveAXObjects;
998 }; 1000 };
999 1001
1000 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1002 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1001 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 1003 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
1002 1004
1003 } // namespace blink 1005 } // namespace blink
1004 1006
1005 #endif // AXObject_h 1007 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698