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

Unified Diff: Source/web/WebLocalFrameImpl.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/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 8fd551c5782ace2c6569aa82bdef92e2642a8c22..6b8797ba44897d745ca0582fe83c9ba13557d39c 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -561,6 +561,25 @@ void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor
m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(client);
}
+void WebLocalFrameImpl::setAccessibilityEnabled(bool enabled)
+{
+ if (!frame())
+ return;
+ if (!frame()->settings())
+ return;
+ frame()->settings()->setAccessibilityEnabled(enabled);
+}
+
+void WebLocalFrameImpl::setInlineTextBoxAccessibilityEnabled(bool enabled)
+{
+ if (!frame())
+ return;
+ if (!frame()->settings())
+ return;
+ fprintf(stderr, "setting inline text box accessibility to %d\n", enabled);
dmazzoni 2014/08/22 23:13:26 don't forget to delete this
aboxhall 2014/08/22 23:30:51 Thanks :)
+ frame()->settings()->setInlineTextBoxAccessibilityEnabled(enabled);
+}
+
WebSize WebLocalFrameImpl::scrollOffset() const
{
FrameView* view = frameView();

Powered by Google App Engine
This is Rietveld 408576698