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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2581483002: Add support for faster, more limited accessibility modes. (Closed)
Patch Set: Android compile fix Created 4 years 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/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 1923e66fc8fc3f6e1481283bc082258c126536a5..4900f6f10f96833cad568c3c8214054871deb5c3 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2117,8 +2117,11 @@ void RenderFrameImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) {
render_accessibility_ = NULL;
}
- if (accessibility_mode_ & ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS)
- render_accessibility_ = new RenderAccessibilityImpl(this);
+ if (accessibility_mode_ & ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS) {
+ LOG(ERROR) << "Mode: " << accessibility_mode_;
+ render_accessibility_ = new RenderAccessibilityImpl(
+ this, accessibility_mode_);
+ }
for (auto& observer : observers_)
observer.AccessibilityModeChanged();

Powered by Google App Engine
This is Rietveld 408576698