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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Created 6 years, 11 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 5c26297e7df4b6c7fbe6e21898b0131720b19854..1121fbd1aa731a7be1f3185bbbb7093bbb5b59ac 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -774,6 +774,21 @@ gfx::NativeViewAccessible accessible_parent) {
}
#endif
+void WebContentsImpl::SetRendererAccessibilityMode(bool on) {
+ // Set accessibility mode for each RWHV
+ RenderWidgetHostView* view = GetRenderWidgetHostView();
+ RenderWidgetHostImpl* host =
+ RenderWidgetHostImpl::From(view->GetRenderWidgetHost());
+ host->SetRendererAccessibilityMode(on);
+
+ for (std::set<RenderWidgetHostImpl*>::iterator i = created_widgets_.begin();
+ i != created_widgets_.end();
+ ++i) {
+ // TODO(aboxhall): need to also set accessibility mode for new widgets
+ (*i)->SetRendererAccessibilityMode(on);
+ }
+}
+
const base::string16& WebContentsImpl::GetTitle() const {
// Transient entries take precedence. They are used for interstitial pages
// that are shown on top of existing pages.

Powered by Google App Engine
This is Rietveld 408576698