| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 AXSelectedTextChanged, | 72 AXSelectedTextChanged, |
| 73 AXShow, | 73 AXShow, |
| 74 AXTextChanged, | 74 AXTextChanged, |
| 75 AXTextInserted, | 75 AXTextInserted, |
| 76 AXTextRemoved, | 76 AXTextRemoved, |
| 77 AXValueChanged | 77 AXValueChanged |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 virtual void selectionChanged(Node*) = 0; | 80 virtual void selectionChanged(Node*) = 0; |
| 81 virtual void childrenChanged(Node*) = 0; | 81 virtual void childrenChanged(Node*) = 0; |
| 82 virtual void childrenChanged(RenderObject*) = 0; | 82 virtual void childrenChanged(LayoutObject*) = 0; |
| 83 virtual void checkedStateChanged(Node*) = 0; | 83 virtual void checkedStateChanged(Node*) = 0; |
| 84 virtual void selectedChildrenChanged(Node*) = 0; | 84 virtual void selectedChildrenChanged(Node*) = 0; |
| 85 | 85 |
| 86 virtual void remove(RenderObject*) = 0; | 86 virtual void remove(LayoutObject*) = 0; |
| 87 virtual void remove(Node*) = 0; | 87 virtual void remove(Node*) = 0; |
| 88 virtual void remove(Widget*) = 0; | 88 virtual void remove(Widget*) = 0; |
| 89 | 89 |
| 90 virtual const Element* rootAXEditableElement(const Node*) = 0; | 90 virtual const Element* rootAXEditableElement(const Node*) = 0; |
| 91 | 91 |
| 92 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. | 92 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. |
| 93 virtual void textChanged(RenderObject*) = 0; | 93 virtual void textChanged(LayoutObject*) = 0; |
| 94 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. | 94 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. |
| 95 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; | 95 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; |
| 96 | 96 |
| 97 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*)
= 0; | 97 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*)
= 0; |
| 98 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo
cusedNode) = 0; | 98 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo
cusedNode) = 0; |
| 99 virtual void handleInitialFocus() = 0; | 99 virtual void handleInitialFocus() = 0; |
| 100 virtual void handleEditableTextContentChanged(Node*) = 0; | 100 virtual void handleEditableTextContentChanged(Node*) = 0; |
| 101 virtual void handleTextFormControlChanged(Node*) = 0; | 101 virtual void handleTextFormControlChanged(Node*) = 0; |
| 102 virtual void handleValueChanged(Node*) = 0; | 102 virtual void handleValueChanged(Node*) = 0; |
| 103 virtual void handleUpdateActiveMenuOption(RenderMenuList*, int optionIndex)
= 0; | 103 virtual void handleUpdateActiveMenuOption(RenderMenuList*, int optionIndex)
= 0; |
| 104 virtual void handleLoadComplete(Document*) = 0; | 104 virtual void handleLoadComplete(Document*) = 0; |
| 105 virtual void handleLayoutComplete(Document*) = 0; | 105 virtual void handleLayoutComplete(Document*) = 0; |
| 106 | 106 |
| 107 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; | 107 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; |
| 108 | 108 |
| 109 virtual void clearWeakMembers(Visitor*) = 0; | 109 virtual void clearWeakMembers(Visitor*) = 0; |
| 110 | 110 |
| 111 virtual void inlineTextBoxesUpdated(RenderObject* renderer) = 0; | 111 virtual void inlineTextBoxesUpdated(LayoutObject* renderer) = 0; |
| 112 | 112 |
| 113 // Called when the scroll offset changes. | 113 // Called when the scroll offset changes. |
| 114 virtual void handleScrollPositionChanged(FrameView*) = 0; | 114 virtual void handleScrollPositionChanged(FrameView*) = 0; |
| 115 virtual void handleScrollPositionChanged(RenderObject*) = 0; | 115 virtual void handleScrollPositionChanged(LayoutObject*) = 0; |
| 116 | 116 |
| 117 // Called when scroll bars are added / removed (as the view resizes). | 117 // Called when scroll bars are added / removed (as the view resizes). |
| 118 virtual void handleScrollbarUpdate(FrameView*) = 0; | 118 virtual void handleScrollbarUpdate(FrameView*) = 0; |
| 119 virtual void handleLayoutComplete(RenderObject*) = 0; | 119 virtual void handleLayoutComplete(LayoutObject*) = 0; |
| 120 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; | 120 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; |
| 121 | 121 |
| 122 virtual const AtomicString& computedRoleForNode(Node*) = 0; | 122 virtual const AtomicString& computedRoleForNode(Node*) = 0; |
| 123 virtual String computedNameForNode(Node*) = 0; | 123 virtual String computedNameForNode(Node*) = 0; |
| 124 | 124 |
| 125 protected: | 125 protected: |
| 126 AXObjectCache(); | 126 AXObjectCache(); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 class ScopedAXObjectCache { | 129 class ScopedAXObjectCache { |
| 130 WTF_MAKE_NONCOPYABLE(ScopedAXObjectCache); | 130 WTF_MAKE_NONCOPYABLE(ScopedAXObjectCache); |
| 131 public: | 131 public: |
| 132 explicit ScopedAXObjectCache(Document&); | 132 explicit ScopedAXObjectCache(Document&); |
| 133 ~ScopedAXObjectCache(); | 133 ~ScopedAXObjectCache(); |
| 134 | 134 |
| 135 AXObjectCache* get(); | 135 AXObjectCache* get(); |
| 136 AXObjectCache* operator->(); | 136 AXObjectCache* operator->(); |
| 137 | 137 |
| 138 private: | 138 private: |
| 139 Document& m_document; | 139 Document& m_document; |
| 140 AXObjectCache* m_cache; | 140 AXObjectCache* m_cache; |
| 141 bool m_isScoped; | 141 bool m_isScoped; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } | 144 } |
| 145 | 145 |
| 146 #endif | 146 #endif |
| OLD | NEW |