Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: public/web/WebAXObject.h

Issue 1053773002: Add WebScopedAXContext to allow a one-time snapshot of accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update other callers of ScopedAXObjectCache to use RefPtr Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebAXObject.h
diff --git a/public/web/WebAXObject.h b/public/web/WebAXObject.h
index 12c4c12e0fa5a2825d45c4ed8d88f18b6ddd01fe..c68c0e4a571f5664031803b32bb2166c6b2fa1b3 100644
--- a/public/web/WebAXObject.h
+++ b/public/web/WebAXObject.h
@@ -43,6 +43,8 @@ namespace WTF { template <typename T> class PassRefPtr; }
namespace blink {
class AXObject;
+class ScopedAXObjectCache;
+class WebAXObject;
class WebNode;
class WebDocument;
class WebString;
@@ -50,6 +52,20 @@ class WebURL;
struct WebPoint;
struct WebRect;
+// An instance of this class, while kept alive, indicates that accessibility
+// should be temporarily enabled. If accessibility was enabled globally
+// (WebSettings::setAccessibilityEnabled), this will have no effect.
+class WebScopedAXContext {
+public:
+ BLINK_EXPORT WebScopedAXContext(WebDocument& rootDocument);
+ BLINK_EXPORT ~WebScopedAXContext();
+
+ BLINK_EXPORT WebAXObject root() const;
+
+private:
+ WebPrivatePtr<ScopedAXObjectCache> m_private;
+};
+
// A container for passing around a reference to AXObject.
class WebAXObject {
public:
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698