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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 virtual void detach(); | 589 virtual void detach(); |
590 virtual bool isDetached() const; | 590 virtual bool isDetached() const; |
591 | 591 |
592 // If the parent of this object is known, this can be faster than using | 592 // If the parent of this object is known, this can be faster than using |
593 // computeParent(). | 593 // computeParent(). |
594 virtual void setParent(AXObject* parent) { m_parent = parent; } | 594 virtual void setParent(AXObject* parent) { m_parent = parent; } |
595 | 595 |
596 // The AXObjectCacheImpl that owns this object, and its unique ID within this | 596 // The AXObjectCacheImpl that owns this object, and its unique ID within this |
597 // cache. | 597 // cache. |
598 AXObjectCacheImpl& axObjectCache() const { | 598 AXObjectCacheImpl& axObjectCache() const { |
599 ASSERT(m_axObjectCache); | 599 DCHECK(m_axObjectCache); |
600 return *m_axObjectCache; | 600 return *m_axObjectCache; |
601 } | 601 } |
602 | 602 |
603 AXID axObjectID() const { return m_id; } | 603 AXID axObjectID() const { return m_id; } |
604 | 604 |
605 // Wrappers that retrieve either an Accessibility Object Model property, | 605 // Wrappers that retrieve either an Accessibility Object Model property, |
606 // or the equivalent ARIA attribute, in that order. | 606 // or the equivalent ARIA attribute, in that order. |
607 // TODO(dmazzoni): Add equivalents for other types of properties besides | 607 // TODO(dmazzoni): Add equivalents for other types of properties besides |
608 // just strings. | 608 // just strings. |
609 const AtomicString& getAOMPropertyOrARIAAttribute(AOMStringProperty) const; | 609 const AtomicString& getAOMPropertyOrARIAAttribute(AOMStringProperty) const; |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 static unsigned s_numberOfLiveAXObjects; | 1120 static unsigned s_numberOfLiveAXObjects; |
1121 }; | 1121 }; |
1122 | 1122 |
1123 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1123 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
1124 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1124 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
1125 object.predicate) | 1125 object.predicate) |
1126 | 1126 |
1127 } // namespace blink | 1127 } // namespace blink |
1128 | 1128 |
1129 #endif // AXObject_h | 1129 #endif // AXObject_h |
OLD | NEW |