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

Unified Diff: content/shell/renderer/test_runner/accessibility_controller.cc

Issue 497263002: Use both APIs (WebAXObject and WebSettings) for enabling accessibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No setAccessibility methods on WebFrame Created 6 years, 4 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 | « content/renderer/accessibility/renderer_accessibility_complete.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/accessibility_controller.cc
diff --git a/content/shell/renderer/test_runner/accessibility_controller.cc b/content/shell/renderer/test_runner/accessibility_controller.cc
index c937a697647ad9dfb3424312404e6e62417cc398..ecdd604f383cdf665081988c50d26582af0f8c35 100644
--- a/content/shell/renderer/test_runner/accessibility_controller.cc
+++ b/content/shell/renderer/test_runner/accessibility_controller.cc
@@ -10,6 +10,7 @@
#include "third_party/WebKit/public/web/WebElement.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebKit.h"
+#include "third_party/WebKit/public/web/WebSettings.h"
#include "third_party/WebKit/public/web/WebView.h"
namespace content {
@@ -147,7 +148,11 @@ void AccessibilityController::Reset() {
void AccessibilityController::Install(blink::WebFrame* frame) {
blink::WebAXObject::enableAccessibility();
+ frame->view()->settings()->setAccessibilityEnabled(true);
+
blink::WebAXObject::enableInlineTextBoxAccessibility();
+ frame->view()->settings()->setInlineTextBoxAccessibilityEnabled(true);
+
AccessibilityControllerBindings::Install(weak_factory_.GetWeakPtr(), frame);
}
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility_complete.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698