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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 int lineForPosition(const VisiblePosition&) const; | 592 int lineForPosition(const VisiblePosition&) const; |
593 virtual int index(const VisiblePosition&) const { return -1; } | 593 virtual int index(const VisiblePosition&) const { return -1; } |
594 virtual void lineBreaks(Vector<int>&) const { } | 594 virtual void lineBreaks(Vector<int>&) const { } |
595 | 595 |
596 // Static helper functions. | 596 // Static helper functions. |
597 static bool isARIAControl(AccessibilityRole); | 597 static bool isARIAControl(AccessibilityRole); |
598 static bool isARIAInput(AccessibilityRole); | 598 static bool isARIAInput(AccessibilityRole); |
599 static AccessibilityRole ariaRoleToWebCoreRole(const String&); | 599 static AccessibilityRole ariaRoleToWebCoreRole(const String&); |
600 static IntRect boundingBoxForQuads(RenderObject*, const Vector<FloatQuad>&); | 600 static IntRect boundingBoxForQuads(RenderObject*, const Vector<FloatQuad>&); |
601 static const AtomicString& roleName(AccessibilityRole); | 601 static const AtomicString& roleName(AccessibilityRole); |
602 | 602 static bool includesARIAWidgetRole(const String& role); |
603 protected: | 603 protected: |
604 AXID m_id; | 604 AXID m_id; |
605 AccessibilityChildrenVector m_children; | 605 AccessibilityChildrenVector m_children; |
606 mutable bool m_haveChildren; | 606 mutable bool m_haveChildren; |
607 AccessibilityRole m_role; | 607 AccessibilityRole m_role; |
608 AXObjectInclusion m_lastKnownIsIgnoredValue; | 608 AXObjectInclusion m_lastKnownIsIgnoredValue; |
609 LayoutRect m_explicitElementRect; | 609 LayoutRect m_explicitElementRect; |
610 | 610 |
611 virtual bool computeAccessibilityIsIgnored() const { return true; } | 611 virtual bool computeAccessibilityIsIgnored() const { return true; } |
612 | 612 |
(...skipping 22 matching lines...) Expand all Loading... |
635 // functions called here may only search up the tree (ancestors), not down. | 635 // functions called here may only search up the tree (ancestors), not down. |
636 void updateCachedAttributeValuesIfNeeded() const; | 636 void updateCachedAttributeValuesIfNeeded() const; |
637 }; | 637 }; |
638 | 638 |
639 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 639 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
640 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 640 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
641 | 641 |
642 } // namespace blink | 642 } // namespace blink |
643 | 643 |
644 #endif // AXObject_h | 644 #endif // AXObject_h |
OLD | NEW |