| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 AXTextFromNativeHTMLTitleElement, | 341 AXTextFromNativeHTMLTitleElement, |
| 342 }; | 342 }; |
| 343 | 343 |
| 344 // The source of the accessible description of an element. This is needed | 344 // The source of the accessible description of an element. This is needed |
| 345 // because on some platforms this determines how the accessible description | 345 // because on some platforms this determines how the accessible description |
| 346 // is exposed. | 346 // is exposed. |
| 347 enum AXDescriptionFrom { | 347 enum AXDescriptionFrom { |
| 348 AXDescriptionFromUninitialized = -1, | 348 AXDescriptionFromUninitialized = -1, |
| 349 AXDescriptionFromAttribute = 0, | 349 AXDescriptionFromAttribute = 0, |
| 350 AXDescriptionFromContents, | 350 AXDescriptionFromContents, |
| 351 AXDescriptionFromPlaceholder, | |
| 352 AXDescriptionFromRelatedElement, | 351 AXDescriptionFromRelatedElement, |
| 353 }; | 352 }; |
| 354 | 353 |
| 355 enum AXIgnoredReason { | 354 enum AXIgnoredReason { |
| 356 AXActiveModalDialog, | 355 AXActiveModalDialog, |
| 357 AXAncestorDisallowsChild, | 356 AXAncestorDisallowsChild, |
| 358 AXAncestorIsLeafNode, | 357 AXAncestorIsLeafNode, |
| 359 AXAriaHidden, | 358 AXAriaHidden, |
| 360 AXAriaHiddenRoot, | 359 AXAriaHiddenRoot, |
| 361 AXEmptyAlt, | 360 AXEmptyAlt, |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 virtual String description(AXNameFrom, | 709 virtual String description(AXNameFrom, |
| 711 AXDescriptionFrom&, | 710 AXDescriptionFrom&, |
| 712 DescriptionSources*, | 711 DescriptionSources*, |
| 713 AXRelatedObjectVector*) const { | 712 AXRelatedObjectVector*) const { |
| 714 return String(); | 713 return String(); |
| 715 } | 714 } |
| 716 | 715 |
| 717 // Takes the result of nameFrom and descriptionFrom from calling |name| and | 716 // Takes the result of nameFrom and descriptionFrom from calling |name| and |
| 718 // |description|, above, and retrieves the placeholder of the object, if | 717 // |description|, above, and retrieves the placeholder of the object, if |
| 719 // present and if it wasn't already exposed by one of the two functions above. | 718 // present and if it wasn't already exposed by one of the two functions above. |
| 720 virtual String placeholder(AXNameFrom, AXDescriptionFrom) const { | 719 virtual String placeholder(AXNameFrom) const { return String(); } |
| 721 return String(); | |
| 722 } | |
| 723 | 720 |
| 724 // Internal functions used by name and description, above. | 721 // Internal functions used by name and description, above. |
| 725 typedef HeapHashSet<Member<const AXObject>> AXObjectSet; | 722 typedef HeapHashSet<Member<const AXObject>> AXObjectSet; |
| 726 virtual String textAlternative(bool recursive, | 723 virtual String textAlternative(bool recursive, |
| 727 bool inAriaLabelledByTraversal, | 724 bool inAriaLabelledByTraversal, |
| 728 AXObjectSet& visited, | 725 AXObjectSet& visited, |
| 729 AXNameFrom& nameFrom, | 726 AXNameFrom& nameFrom, |
| 730 AXRelatedObjectVector* relatedObjects, | 727 AXRelatedObjectVector* relatedObjects, |
| 731 NameSources* nameSources) const { | 728 NameSources* nameSources) const { |
| 732 return String(); | 729 return String(); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 static unsigned s_numberOfLiveAXObjects; | 1061 static unsigned s_numberOfLiveAXObjects; |
| 1065 }; | 1062 }; |
| 1066 | 1063 |
| 1067 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1064 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 1068 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1065 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
| 1069 object.predicate) | 1066 object.predicate) |
| 1070 | 1067 |
| 1071 } // namespace blink | 1068 } // namespace blink |
| 1072 | 1069 |
| 1073 #endif // AXObject_h | 1070 #endif // AXObject_h |
| OLD | NEW |