Index: Source/core/dom/AXObjectCache.h |
diff --git a/Source/core/dom/AXObjectCache.h b/Source/core/dom/AXObjectCache.h |
index a389c0d7f446208d0f70627e9f63122190d1accf..975bb539d9788719d921dfaf99a9f4d31da6e4a6 100644 |
--- a/Source/core/dom/AXObjectCache.h |
+++ b/Source/core/dom/AXObjectCache.h |
@@ -120,10 +120,28 @@ public: |
virtual void handleLayoutComplete(RenderObject*) = 0; |
virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; |
+ virtual const AtomicString& computedRoleForNode(Node*) = 0; |
+ virtual String computedNameForNode(Node*) = 0; |
+ |
protected: |
AXObjectCache(); |
}; |
+class ScopedAXObjectCache { |
+ WTF_MAKE_NONCOPYABLE(ScopedAXObjectCache); |
+public: |
+ explicit ScopedAXObjectCache(Document&); |
+ ~ScopedAXObjectCache(); |
+ |
+ AXObjectCache* get(); |
+ AXObjectCache* operator->(); |
+ |
+private: |
+ Document& m_document; |
+ AXObjectCache* m_cache; |
+ bool m_isScoped; |
+}; |
+ |
} |
#endif |