| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 virtual String placeholder(AXNameFrom, AXDescriptionFrom) const { return Str
ing(); } | 697 virtual String placeholder(AXNameFrom, AXDescriptionFrom) const { return Str
ing(); } |
| 698 | 698 |
| 699 // Internal function used by name and description, above. | 699 // Internal function used by name and description, above. |
| 700 typedef HeapHashSet<Member<const AXObject>> AXObjectSet; | 700 typedef HeapHashSet<Member<const AXObject>> AXObjectSet; |
| 701 virtual String textAlternative(bool recursive, bool inAriaLabelledByTraversa
l, AXObjectSet& visited, AXNameFrom& nameFrom, AXRelatedObjectVector* relatedObj
ects, NameSources* nameSources) const { return String(); } | 701 virtual String textAlternative(bool recursive, bool inAriaLabelledByTraversa
l, AXObjectSet& visited, AXNameFrom& nameFrom, AXRelatedObjectVector* relatedObj
ects, NameSources* nameSources) const { return String(); } |
| 702 | 702 |
| 703 // Returns result of Accessible Name Calculation algorithm. | 703 // Returns result of Accessible Name Calculation algorithm. |
| 704 // This is a simpler high-level interface to |name| used by Inspector. | 704 // This is a simpler high-level interface to |name| used by Inspector. |
| 705 String computedName() const; | 705 String computedName() const; |
| 706 | 706 |
| 707 // Internal function used to determine whether the result of calling |name|
on this object would |
| 708 // return text that came from the an HTML label element or not. This is inte
nded to be faster than calling |
| 709 // |name| or |textAlternative|, and without side effects (it won't call axOb
jectCache->getOrCreate). |
| 710 virtual bool nameFromLabelElement() const { return false; } |
| 711 |
| 707 // | 712 // |
| 708 // Properties of static elements. | 713 // Properties of static elements. |
| 709 // | 714 // |
| 710 | 715 |
| 711 virtual const AtomicString& accessKey() const { return nullAtom; } | 716 virtual const AtomicString& accessKey() const { return nullAtom; } |
| 712 virtual RGBA32 backgroundColor() const { return Color::transparent; } | 717 virtual RGBA32 backgroundColor() const { return Color::transparent; } |
| 713 virtual RGBA32 color() const { return Color::black; } | 718 virtual RGBA32 color() const { return Color::black; } |
| 714 // Used by objects of role ColorWellRole. | 719 // Used by objects of role ColorWellRole. |
| 715 virtual RGBA32 colorValue() const { return Color::transparent; } | 720 virtual RGBA32 colorValue() const { return Color::transparent; } |
| 716 virtual bool canvasHasFallbackContent() const { return false; } | 721 virtual bool canvasHasFallbackContent() const { return false; } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 979 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 975 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 980 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 976 | 981 |
| 977 } // namespace blink | 982 } // namespace blink |
| 978 | 983 |
| 979 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); | 984 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); |
| 980 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); | 985 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); |
| 981 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); | 986 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); |
| 982 | 987 |
| 983 #endif // AXObject_h | 988 #endif // AXObject_h |
| OLD | NEW |