| 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 virtual Element* anchorElement() const { return 0; } | 668 virtual Element* anchorElement() const { return 0; } |
| 669 virtual Element* actionElement() const { return 0; } | 669 virtual Element* actionElement() const { return 0; } |
| 670 virtual Widget* widgetForAttachmentView() const { return 0; } | 670 virtual Widget* widgetForAttachmentView() const { return 0; } |
| 671 String language() const; | 671 String language() const; |
| 672 bool hasAttribute(const QualifiedName&) const; | 672 bool hasAttribute(const QualifiedName&) const; |
| 673 const AtomicString& getAttribute(const QualifiedName&) const; | 673 const AtomicString& getAttribute(const QualifiedName&) const; |
| 674 | 674 |
| 675 // Selected text. | 675 // Selected text. |
| 676 virtual PlainTextRange selectedTextRange() const { return PlainTextRange();
} | 676 virtual PlainTextRange selectedTextRange() const { return PlainTextRange();
} |
| 677 | 677 |
| 678 // Scrollable containers. |
| 679 bool isScrollableContainer() const; |
| 680 IntPoint scrollOffset() const; |
| 681 IntPoint minimumScrollOffset() const; |
| 682 IntPoint maximumScrollOffset() const; |
| 683 void setScrollOffset(const IntPoint&) const; |
| 684 |
| 678 // Modify or take an action on an object. | 685 // Modify or take an action on an object. |
| 679 virtual void increment() { } | 686 virtual void increment() { } |
| 680 virtual void decrement() { } | 687 virtual void decrement() { } |
| 681 bool performDefaultAction() const { return press(); } | 688 bool performDefaultAction() const { return press(); } |
| 682 virtual bool press() const; | 689 virtual bool press() const; |
| 683 // Make this object visible by scrolling as many nested scrollable views as
needed. | 690 // Make this object visible by scrolling as many nested scrollable views as
needed. |
| 684 void scrollToMakeVisible() const; | 691 void scrollToMakeVisible() const; |
| 685 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. | 692 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. |
| 686 void scrollToMakeVisibleWithSubFocus(const IntRect&) const; | 693 void scrollToMakeVisibleWithSubFocus(const IntRect&) const; |
| 687 // Scroll this object to a given point in global coordinates of the top-leve
l window. | 694 // Scroll this object to a given point in global coordinates of the top-leve
l window. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 AccessibilityChildrenVector m_children; | 729 AccessibilityChildrenVector m_children; |
| 723 mutable bool m_haveChildren; | 730 mutable bool m_haveChildren; |
| 724 AccessibilityRole m_role; | 731 AccessibilityRole m_role; |
| 725 AXObjectInclusion m_lastKnownIsIgnoredValue; | 732 AXObjectInclusion m_lastKnownIsIgnoredValue; |
| 726 LayoutRect m_explicitElementRect; | 733 LayoutRect m_explicitElementRect; |
| 727 | 734 |
| 728 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } | 735 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } |
| 729 | 736 |
| 730 // If this object itself scrolls, return its ScrollableArea. | 737 // If this object itself scrolls, return its ScrollableArea. |
| 731 virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } | 738 virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } |
| 732 virtual void scrollTo(const IntPoint&) const { } | |
| 733 | 739 |
| 734 AccessibilityRole buttonRoleType() const; | 740 AccessibilityRole buttonRoleType() const; |
| 735 | 741 |
| 736 unsigned getLengthForTextRange() const { return text().length(); } | 742 unsigned getLengthForTextRange() const { return text().length(); } |
| 737 | 743 |
| 738 bool m_detached; | 744 bool m_detached; |
| 739 | 745 |
| 740 mutable AXObject* m_parent; | 746 mutable AXObject* m_parent; |
| 741 | 747 |
| 742 // The following cached attribute values (the ones starting with m_cached*) | 748 // The following cached attribute values (the ones starting with m_cached*) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 760 static bool includesARIAWidgetRole(const String&); | 766 static bool includesARIAWidgetRole(const String&); |
| 761 static bool hasInteractiveARIAAttribute(const Element&); | 767 static bool hasInteractiveARIAAttribute(const Element&); |
| 762 }; | 768 }; |
| 763 | 769 |
| 764 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 770 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 765 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 771 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 766 | 772 |
| 767 } // namespace blink | 773 } // namespace blink |
| 768 | 774 |
| 769 #endif // AXObject_h | 775 #endif // AXObject_h |
| OLD | NEW |