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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: rebase Created 5 years, 3 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: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index dbd10ed7233324d1ee31dcf7f53c8cd2dd7a06e5..3184a0f9c7c2cf2db5dab5147fd7635b67eb9e93 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -529,10 +529,12 @@ void RenderFrameHostImpl::AccessibilitySetScrollOffset(
routing_id_, acc_obj_id, offset));
}
-void RenderFrameHostImpl::AccessibilitySetTextSelection(
- int object_id, int start_offset, int end_offset) {
- Send(new AccessibilityMsg_SetTextSelection(
- routing_id_, object_id, start_offset, end_offset));
+void RenderFrameHostImpl::AccessibilitySetSelection(
+ int anchor_object_id, int anchor_offset,
+ int focus_object_id, int focus_offset) {
nasko 2015/09/23 16:08:34 Each parameter should be on a new line.
+ Send(new AccessibilityMsg_SetSelection(
+ routing_id_, focus_object_id, anchor_offset,
+ focus_object_id, focus_offset));
}
void RenderFrameHostImpl::AccessibilitySetValue(

Powered by Google App Engine
This is Rietveld 408576698