| 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 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef AXObject_h | 30 #ifndef AXObject_h |
| 31 #define AXObject_h | 31 #define AXObject_h |
| 32 | 32 |
| 33 #include "core/dom/AccessibleNode.h" |
| 33 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
| 34 #include "core/editing/markers/DocumentMarker.h" | 35 #include "core/editing/markers/DocumentMarker.h" |
| 35 #include "core/inspector/protocol/Accessibility.h" | 36 #include "core/inspector/protocol/Accessibility.h" |
| 36 #include "modules/ModulesExport.h" | 37 #include "modules/ModulesExport.h" |
| 37 #include "platform/geometry/FloatQuad.h" | 38 #include "platform/geometry/FloatQuad.h" |
| 38 #include "platform/geometry/LayoutRect.h" | 39 #include "platform/geometry/LayoutRect.h" |
| 39 #include "platform/graphics/Color.h" | 40 #include "platform/graphics/Color.h" |
| 40 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 41 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 42 | 43 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 | 593 |
| 593 // The AXObjectCacheImpl that owns this object, and its unique ID within this | 594 // The AXObjectCacheImpl that owns this object, and its unique ID within this |
| 594 // cache. | 595 // cache. |
| 595 AXObjectCacheImpl& axObjectCache() const { | 596 AXObjectCacheImpl& axObjectCache() const { |
| 596 ASSERT(m_axObjectCache); | 597 ASSERT(m_axObjectCache); |
| 597 return *m_axObjectCache; | 598 return *m_axObjectCache; |
| 598 } | 599 } |
| 599 | 600 |
| 600 AXID axObjectID() const { return m_id; } | 601 AXID axObjectID() const { return m_id; } |
| 601 | 602 |
| 603 // Accessibility Object Model AccessibleNode interface |
| 604 AccessibleNode* getAccessibleNode() const; |
| 605 // Wrappers that retrieve either an ARIA attribute, or the equivalent |
| 606 // Accessibility Object Model property, in that order. |
| 607 const AtomicString& getAriaAttributeOrAOMProperty(AOMStringProperty) const; |
| 608 |
| 602 virtual void getSparseAXAttributes(AXSparseAttributeClient&) const {} | 609 virtual void getSparseAXAttributes(AXSparseAttributeClient&) const {} |
| 603 | 610 |
| 604 // Determine subclass type. | 611 // Determine subclass type. |
| 605 virtual bool isAXNodeObject() const { return false; } | 612 virtual bool isAXNodeObject() const { return false; } |
| 606 virtual bool isAXLayoutObject() const { return false; } | 613 virtual bool isAXLayoutObject() const { return false; } |
| 607 virtual bool isAXListBox() const { return false; } | 614 virtual bool isAXListBox() const { return false; } |
| 608 virtual bool isAXListBoxOption() const { return false; } | 615 virtual bool isAXListBoxOption() const { return false; } |
| 609 virtual bool isAXRadioInput() const { return false; } | 616 virtual bool isAXRadioInput() const { return false; } |
| 610 virtual bool isAXSVGRoot() const { return false; } | 617 virtual bool isAXSVGRoot() const { return false; } |
| 611 | 618 |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 static unsigned s_numberOfLiveAXObjects; | 1117 static unsigned s_numberOfLiveAXObjects; |
| 1111 }; | 1118 }; |
| 1112 | 1119 |
| 1113 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1120 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 1114 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1121 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
| 1115 object.predicate) | 1122 object.predicate) |
| 1116 | 1123 |
| 1117 } // namespace blink | 1124 } // namespace blink |
| 1118 | 1125 |
| 1119 #endif // AXObject_h | 1126 #endif // AXObject_h |
| OLD | NEW |