summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_widget_host.cc
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 23:35:40 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 23:35:40 +0000
commit49dc8639c4bdcfc9accf1335ff0d1510352570aa (patch)
tree36d9d8aa99e19cc1b17db2600dadf512f3a04429 /content/browser/renderer_host/render_widget_host.cc
parent9f01504e3a13c800a5008de5ef49defbddf592a0 (diff)
downloadchromium_src-49dc8639c4bdcfc9accf1335ff0d1510352570aa.zip
chromium_src-49dc8639c4bdcfc9accf1335ff0d1510352570aa.tar.gz
chromium_src-49dc8639c4bdcfc9accf1335ff0d1510352570aa.tar.bz2
Add IPCs to allow assistive technology to scroll the page
or select text. BUG=104468,104469 TEST=none Review URL: http://codereview.chromium.org/8776030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_widget_host.cc')
-rw-r--r--content/browser/renderer_host/render_widget_host.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc
index 295b90b..f006033 100644
--- a/content/browser/renderer_host/render_widget_host.cc
+++ b/content/browser/renderer_host/render_widget_host.cc
@@ -1445,6 +1445,18 @@ void RenderWidgetHost::AccessibilitySetFocus(int object_id) {
Send(new ViewMsg_SetAccessibilityFocus(routing_id(), object_id));
}
+void RenderWidgetHost::AccessibilityChangeScrollPosition(
+ int object_id, int scroll_x, int scroll_y) {
+ Send(new ViewMsg_AccessibilityChangeScrollPosition(
+ routing_id(), object_id, scroll_x, scroll_y));
+}
+
+void RenderWidgetHost::AccessibilitySetTextSelection(
+ int object_id, int start_offset, int end_offset) {
+ Send(new ViewMsg_AccessibilitySetTextSelection(
+ routing_id(), object_id, start_offset, end_offset));
+}
+
void RenderWidgetHost::ExecuteEditCommand(const std::string& command,
const std::string& value) {
Send(new ViewMsg_ExecuteEditCommand(routing_id(), command, value));