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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 AXDescriptionFromUninitialized = -1, | 361 AXDescriptionFromUninitialized = -1, |
362 AXDescriptionFromAttribute = 0, | 362 AXDescriptionFromAttribute = 0, |
363 AXDescriptionFromContents, | 363 AXDescriptionFromContents, |
364 AXDescriptionFromRelatedElement, | 364 AXDescriptionFromRelatedElement, |
365 }; | 365 }; |
366 | 366 |
367 enum AXIgnoredReason { | 367 enum AXIgnoredReason { |
368 AXActiveModalDialog, | 368 AXActiveModalDialog, |
369 AXAncestorDisallowsChild, | 369 AXAncestorDisallowsChild, |
370 AXAncestorIsLeafNode, | 370 AXAncestorIsLeafNode, |
371 AXAriaHidden, | 371 AXAriaHiddenElement, |
372 AXAriaHiddenRoot, | 372 AXAriaHiddenSubtree, |
373 AXEmptyAlt, | 373 AXEmptyAlt, |
374 AXEmptyText, | 374 AXEmptyText, |
375 AXInert, | 375 AXInertElement, |
| 376 AXInertSubtree, |
376 AXInheritsPresentation, | 377 AXInheritsPresentation, |
377 AXLabelContainer, | 378 AXLabelContainer, |
378 AXLabelFor, | 379 AXLabelFor, |
379 AXNotRendered, | 380 AXNotRendered, |
380 AXNotVisible, | 381 AXNotVisible, |
381 AXPresentationalRole, | 382 AXPresentationalRole, |
382 AXProbablyPresentational, | 383 AXProbablyPresentational, |
383 AXStaticTextUsedAsNameFor, | 384 AXStaticTextUsedAsNameFor, |
384 AXUninteresting | 385 AXUninteresting |
385 }; | 386 }; |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } | 1042 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } |
1042 | 1043 |
1043 virtual bool nameFromContents() const; | 1044 virtual bool nameFromContents() const; |
1044 | 1045 |
1045 AccessibilityRole buttonRoleType() const; | 1046 AccessibilityRole buttonRoleType() const; |
1046 | 1047 |
1047 virtual LayoutObject* layoutObjectForRelativeBounds() const { | 1048 virtual LayoutObject* layoutObjectForRelativeBounds() const { |
1048 return nullptr; | 1049 return nullptr; |
1049 } | 1050 } |
1050 | 1051 |
| 1052 const AXObject* inertRoot() const; |
| 1053 |
1051 mutable Member<AXObject> m_parent; | 1054 mutable Member<AXObject> m_parent; |
1052 | 1055 |
1053 // The following cached attribute values (the ones starting with m_cached*) | 1056 // The following cached attribute values (the ones starting with m_cached*) |
1054 // are only valid if m_lastModificationCount matches | 1057 // are only valid if m_lastModificationCount matches |
1055 // AXObjectCacheImpl::modificationCount(). | 1058 // AXObjectCacheImpl::modificationCount(). |
1056 mutable int m_lastModificationCount; | 1059 mutable int m_lastModificationCount; |
1057 mutable RGBA32 m_cachedBackgroundColor; | 1060 mutable RGBA32 m_cachedBackgroundColor; |
1058 mutable bool m_cachedIsIgnored : 1; | 1061 mutable bool m_cachedIsIgnored : 1; |
1059 mutable bool m_cachedIsInertOrAriaHidden : 1; | 1062 mutable bool m_cachedIsInertOrAriaHidden : 1; |
1060 mutable bool m_cachedIsDescendantOfLeafNode : 1; | 1063 mutable bool m_cachedIsDescendantOfLeafNode : 1; |
(...skipping 17 matching lines...) Expand all Loading... |
1078 static unsigned s_numberOfLiveAXObjects; | 1081 static unsigned s_numberOfLiveAXObjects; |
1079 }; | 1082 }; |
1080 | 1083 |
1081 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1084 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
1082 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1085 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
1083 object.predicate) | 1086 object.predicate) |
1084 | 1087 |
1085 } // namespace blink | 1088 } // namespace blink |
1086 | 1089 |
1087 #endif // AXObject_h | 1090 #endif // AXObject_h |
OLD | NEW |