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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix virtual method with no implementation, non-explicit single argument constructor Created 7 years, 10 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/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index bceb702cfeb4c991d2501f2ec1ad72a6458b355d..bca907e8f95935daf3c22f23c57d27b0da151248 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -807,6 +807,17 @@ void RenderWidgetHostImpl::EnableFullAccessibilityMode() {
SetAccessibilityMode(AccessibilityModeComplete);
}
+void RenderWidgetHostImpl::SetAccessibilityEnabled(bool enabled) {
+ if (enabled)
+ SetAccessibilityMode(AccessibilityModeComplete);
+ else
+ SetAccessibilityMode(AccessibilityModeOff);
+}
+
+bool RenderWidgetHostImpl::GetAccessibilityEnabled() const {
+ return accessibility_mode_ == AccessibilityModeComplete;
+}
+
static WebGestureEvent MakeGestureEvent(WebInputEvent::Type type,
double timestamp_seconds,
int x,

Powered by Google App Engine
This is Rietveld 408576698