| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 virtual void selectionChanged(); | 605 virtual void selectionChanged(); |
| 606 virtual void textChanged() { } | 606 virtual void textChanged() { } |
| 607 virtual void updateAccessibilityRole() { } | 607 virtual void updateAccessibilityRole() { } |
| 608 | 608 |
| 609 // Text metrics. Most of these should be deprecated, needs major cleanup. | 609 // Text metrics. Most of these should be deprecated, needs major cleanup. |
| 610 virtual VisiblePosition visiblePositionForIndex(int) const { return VisibleP
osition(); } | 610 virtual VisiblePosition visiblePositionForIndex(int) const { return VisibleP
osition(); } |
| 611 int lineForPosition(const VisiblePosition&) const; | 611 int lineForPosition(const VisiblePosition&) const; |
| 612 virtual int index(const VisiblePosition&) const { return -1; } | 612 virtual int index(const VisiblePosition&) const { return -1; } |
| 613 virtual void lineBreaks(Vector<int>&) const { } | 613 virtual void lineBreaks(Vector<int>&) const { } |
| 614 | 614 |
| 615 // Returns it has implicit inheritedPresentation Role. |
| 616 virtual bool hasInheritedPresentationRole() const { return false; } |
| 617 |
| 615 // Static helper functions. | 618 // Static helper functions. |
| 616 static bool isARIAControl(AccessibilityRole); | 619 static bool isARIAControl(AccessibilityRole); |
| 617 static bool isARIAInput(AccessibilityRole); | 620 static bool isARIAInput(AccessibilityRole); |
| 618 static AccessibilityRole ariaRoleToWebCoreRole(const String&); | 621 static AccessibilityRole ariaRoleToWebCoreRole(const String&); |
| 619 static IntRect boundingBoxForQuads(LayoutObject*, const Vector<FloatQuad>&); | 622 static IntRect boundingBoxForQuads(LayoutObject*, const Vector<FloatQuad>&); |
| 620 static const AtomicString& roleName(AccessibilityRole); | 623 static const AtomicString& roleName(AccessibilityRole); |
| 621 static bool isInsideFocusableElementOrARIAWidget(const Node&); | 624 static bool isInsideFocusableElementOrARIAWidget(const Node&); |
| 622 | 625 |
| 623 protected: | 626 protected: |
| 624 AXID m_id; | 627 AXID m_id; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 static bool includesARIAWidgetRole(const String&); | 664 static bool includesARIAWidgetRole(const String&); |
| 662 static bool hasInteractiveARIAAttribute(const Element&); | 665 static bool hasInteractiveARIAAttribute(const Element&); |
| 663 }; | 666 }; |
| 664 | 667 |
| 665 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 668 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 666 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 669 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 667 | 670 |
| 668 } // namespace blink | 671 } // namespace blink |
| 669 | 672 |
| 670 #endif // AXObject_h | 673 #endif // AXObject_h |
| OLD | NEW |