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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class AbstractInlineTextBox; | 36 class AbstractInlineTextBox; |
37 class AXObject; | 37 class AXObject; |
38 class FrameView; | 38 class FrameView; |
39 class HTMLOptionElement; | 39 class HTMLOptionElement; |
40 class HTMLSelectElement; | 40 class HTMLSelectElement; |
41 class LayoutMenuList; | 41 class LayoutMenuList; |
42 class Page; | 42 class Page; |
43 class Widget; | |
44 | 43 |
45 class CORE_EXPORT AXObjectCache : public GarbageCollectedFinalized<AXObjectCache
> { | 44 class CORE_EXPORT AXObjectCache : public GarbageCollectedFinalized<AXObjectCache
> { |
46 WTF_MAKE_NONCOPYABLE(AXObjectCache); | 45 WTF_MAKE_NONCOPYABLE(AXObjectCache); |
47 public: | 46 public: |
48 static AXObjectCache* create(Document&); | 47 static AXObjectCache* create(Document&); |
49 | 48 |
50 static AXObject* focusedUIElementForPage(const Page*); | 49 static AXObject* focusedUIElementForPage(const Page*); |
51 | 50 |
52 virtual ~AXObjectCache(); | 51 virtual ~AXObjectCache(); |
53 DEFINE_INLINE_VIRTUAL_TRACE() { } | 52 DEFINE_INLINE_VIRTUAL_TRACE() { } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual void selectionChanged(Node*) = 0; | 88 virtual void selectionChanged(Node*) = 0; |
90 virtual void childrenChanged(Node*) = 0; | 89 virtual void childrenChanged(Node*) = 0; |
91 virtual void childrenChanged(LayoutObject*) = 0; | 90 virtual void childrenChanged(LayoutObject*) = 0; |
92 virtual void checkedStateChanged(Node*) = 0; | 91 virtual void checkedStateChanged(Node*) = 0; |
93 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; | 92 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; |
94 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; | 93 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; |
95 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; | 94 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; |
96 | 95 |
97 virtual void remove(LayoutObject*) = 0; | 96 virtual void remove(LayoutObject*) = 0; |
98 virtual void remove(Node*) = 0; | 97 virtual void remove(Node*) = 0; |
99 virtual void remove(Widget*) = 0; | |
100 virtual void remove(AbstractInlineTextBox*) = 0; | 98 virtual void remove(AbstractInlineTextBox*) = 0; |
101 | 99 |
102 virtual const Element* rootAXEditableElement(const Node*) = 0; | 100 virtual const Element* rootAXEditableElement(const Node*) = 0; |
103 | 101 |
104 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. | 102 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. |
105 virtual void textChanged(LayoutObject*) = 0; | 103 virtual void textChanged(LayoutObject*) = 0; |
106 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. | 104 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. |
107 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; | 105 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; |
108 | 106 |
109 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*)
= 0; | 107 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*)
= 0; |
(...skipping 10 matching lines...) Expand all Loading... |
120 | 118 |
121 | 119 |
122 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; | 120 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; |
123 | 121 |
124 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; | 122 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; |
125 | 123 |
126 // Called when the scroll offset changes. | 124 // Called when the scroll offset changes. |
127 virtual void handleScrollPositionChanged(FrameView*) = 0; | 125 virtual void handleScrollPositionChanged(FrameView*) = 0; |
128 virtual void handleScrollPositionChanged(LayoutObject*) = 0; | 126 virtual void handleScrollPositionChanged(LayoutObject*) = 0; |
129 | 127 |
130 // Called when scroll bars are added / removed (as the view resizes). | |
131 virtual void handleScrollbarUpdate(FrameView*) = 0; | |
132 virtual void handleLayoutComplete(LayoutObject*) = 0; | 128 virtual void handleLayoutComplete(LayoutObject*) = 0; |
133 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; | 129 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; |
134 | 130 |
135 virtual const AtomicString& computedRoleForNode(Node*) = 0; | 131 virtual const AtomicString& computedRoleForNode(Node*) = 0; |
136 virtual String computedNameForNode(Node*) = 0; | 132 virtual String computedNameForNode(Node*) = 0; |
137 | 133 |
138 typedef AXObjectCache* (*AXObjectCacheCreateFunction)(Document&); | 134 typedef AXObjectCache* (*AXObjectCacheCreateFunction)(Document&); |
139 static void init(AXObjectCacheCreateFunction); | 135 static void init(AXObjectCacheCreateFunction); |
140 | 136 |
141 protected: | 137 protected: |
(...skipping 15 matching lines...) Expand all Loading... |
157 private: | 153 private: |
158 explicit ScopedAXObjectCache(Document&); | 154 explicit ScopedAXObjectCache(Document&); |
159 | 155 |
160 RefPtrWillBePersistent<Document> m_document; | 156 RefPtrWillBePersistent<Document> m_document; |
161 Persistent<AXObjectCache> m_cache; | 157 Persistent<AXObjectCache> m_cache; |
162 }; | 158 }; |
163 | 159 |
164 } | 160 } |
165 | 161 |
166 #endif | 162 #endif |
OLD | NEW |