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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 AXObject* parentObjectIfExists() const; | 519 AXObject* parentObjectIfExists() const; |
520 virtual AXObject* computeParent() const = 0; | 520 virtual AXObject* computeParent() const = 0; |
521 virtual AXObject* computeParentIfExists() const { return 0; } | 521 virtual AXObject* computeParentIfExists() const { return 0; } |
522 AXObject* cachedParentObject() const { return m_parent; } | 522 AXObject* cachedParentObject() const { return m_parent; } |
523 AXObject* parentObjectUnignored() const; | 523 AXObject* parentObjectUnignored() const; |
524 | 524 |
525 // Low-level accessibility tree exploration, only for use within the accessi
bility module. | 525 // Low-level accessibility tree exploration, only for use within the accessi
bility module. |
526 virtual AXObject* firstChild() const { return 0; } | 526 virtual AXObject* firstChild() const { return 0; } |
527 virtual AXObject* nextSibling() const { return 0; } | 527 virtual AXObject* nextSibling() const { return 0; } |
528 AXObject* firstAccessibleObjectFromNode(const Node*); | 528 AXObject* firstAccessibleObjectFromNode(const Node*); |
| 529 virtual bool isDescendantOfBarrenParent() const { return false; } |
529 virtual void addChildren() { } | 530 virtual void addChildren() { } |
530 virtual bool canHaveChildren() const { return true; } | 531 virtual bool canHaveChildren() const { return true; } |
531 bool hasChildren() const { return m_haveChildren; } | 532 bool hasChildren() const { return m_haveChildren; } |
532 virtual void updateChildrenIfNecessary(); | 533 virtual void updateChildrenIfNecessary(); |
533 virtual bool needsToUpdateChildren() const { return false; } | 534 virtual bool needsToUpdateChildren() const { return false; } |
534 virtual void setNeedsToUpdateChildren() { } | 535 virtual void setNeedsToUpdateChildren() { } |
535 virtual void clearChildren(); | 536 virtual void clearChildren(); |
536 virtual void detachFromParent() { m_parent = 0; } | 537 virtual void detachFromParent() { m_parent = 0; } |
537 virtual AXObject* observableObject() const { return 0; } | 538 virtual AXObject* observableObject() const { return 0; } |
538 virtual AXObject* scrollBar(AccessibilityOrientation) { return 0; } | 539 virtual AXObject* scrollBar(AccessibilityOrientation) { return 0; } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 // functions called here may only search up the tree (ancestors), not down. | 632 // functions called here may only search up the tree (ancestors), not down. |
632 void updateCachedAttributeValuesIfNeeded() const; | 633 void updateCachedAttributeValuesIfNeeded() const; |
633 }; | 634 }; |
634 | 635 |
635 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 636 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
636 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 637 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
637 | 638 |
638 } // namespace blink | 639 } // namespace blink |
639 | 640 |
640 #endif // AXObject_h | 641 #endif // AXObject_h |
OLD | NEW |