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

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

Issue 8770021: Initial implementation of IAccessible2 scrollTo and setTextSelection and (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 112482)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -2118,6 +2118,24 @@
render_widget_host_->AccessibilityDoDefaultAction(acc_obj_id);
}
+void RenderWidgetHostViewWin::AccessibilityChangeScrollPosition(
+ int acc_obj_id, int scroll_x, int scroll_y) {
+ if (!render_widget_host_)
+ return;
+
+ render_widget_host_->AccessibilityChangeScrollPosition(
+ acc_obj_id, scroll_x, scroll_y);
+}
+
+void RenderWidgetHostViewWin::AccessibilitySetTextSelection(
+ int acc_obj_id, int start_offset, int end_offset) {
+ if (!render_widget_host_)
+ return;
+
+ render_widget_host_->AccessibilitySetTextSelection(
+ acc_obj_id, start_offset, end_offset);
+}
+
IAccessible* RenderWidgetHostViewWin::GetIAccessible() {
if (render_widget_host_ && !render_widget_host_->renderer_accessible()) {
// Attempt to detect screen readers by sending an event with our custom id.

Powered by Google App Engine
This is Rietveld 408576698