Migrate accessibility from RenderView to RenderFrame and RVH to RFH.
In preparation for out-of-process iframes, move almost all accessibility
functionality from RenderView to RenderFrame, and from RVHI and RWHI
to RFHI.
In addition, the accessibility mode is moved to WebContents, and changing
the mode triggers changing it on all frames.
BUG=368298
[email protected], [email protected], [email protected]
Review URL: https://codereview.chromium.org/273423004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285767 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index b39553e..b163306 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -222,6 +222,18 @@
virtual void SetUserAgentOverride(const std::string& override) = 0;
virtual const std::string& GetUserAgentOverride() const = 0;
+ // Enable the accessibility tree for this WebContents in the renderer,
+ // but don't enable creating a native accessibility tree on the browser
+ // side.
+ virtual void EnableTreeOnlyAccessibilityMode() = 0;
+
+ // Returns true only if "tree only" accessibility mode is on.
+ virtual bool IsTreeOnlyAccessibilityModeForTesting() const = 0;
+
+ // Returns true only if complete accessibility mode is on, meaning there's
+ // both renderer accessibility, and a native browser accessibility tree.
+ virtual bool IsFullAccessibilityModeForTesting() const = 0;
+
#if defined(OS_WIN)
virtual void SetParentNativeViewAccessible(
gfx::NativeViewAccessible accessible_parent) = 0;