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

Unified Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 491483006: Add accessibilityEnabled and inlineTextBoxAccessiblityEnabled to Settings, but don't use them yet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/web/WebRemoteFrameImpl.cpp
diff --git a/Source/web/WebRemoteFrameImpl.cpp b/Source/web/WebRemoteFrameImpl.cpp
index de606ac881fbe4dadcdb46072c81dcf22d30df2b..4bb408b23c21e51f5f43c71de02cfb39f31bccfd 100644
--- a/Source/web/WebRemoteFrameImpl.cpp
+++ b/Source/web/WebRemoteFrameImpl.cpp
@@ -7,6 +7,7 @@
#include "core/frame/FrameOwner.h"
#include "core/frame/RemoteFrame.h"
+#include "core/frame/Settings.h"
#include "core/page/Page.h"
#include "public/platform/WebFloatRect.h"
#include "public/platform/WebRect.h"
@@ -179,6 +180,24 @@ void WebRemoteFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerReposito
ASSERT_NOT_REACHED();
}
+void WebRemoteFrameImpl::setAccessibilityEnabled(bool enabled)
+{
+ if (!frame())
+ return;
+ if (!frame()->settings())
+ return;
+ frame()->settings()->setAccessibilityEnabled(enabled);
+}
+
+void WebRemoteFrameImpl::setInlineTextBoxAccessibilityEnabled(bool enabled)
+{
+ if (!frame())
+ return;
+ if (!frame()->settings())
+ return;
+ frame()->settings()->setInlineTextBoxAccessibilityEnabled(enabled);
+}
+
void WebRemoteFrameImpl::setCanHaveScrollbars(bool)
{
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698