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

Side by Side 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: Change setDocumentSelection to take named arguments. Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 Send(new AccessibilityMsg_ScrollToPoint( 519 Send(new AccessibilityMsg_ScrollToPoint(
520 routing_id_, acc_obj_id, point)); 520 routing_id_, acc_obj_id, point));
521 } 521 }
522 522
523 void RenderFrameHostImpl::AccessibilitySetScrollOffset( 523 void RenderFrameHostImpl::AccessibilitySetScrollOffset(
524 int acc_obj_id, const gfx::Point& offset) { 524 int acc_obj_id, const gfx::Point& offset) {
525 Send(new AccessibilityMsg_SetScrollOffset( 525 Send(new AccessibilityMsg_SetScrollOffset(
526 routing_id_, acc_obj_id, offset)); 526 routing_id_, acc_obj_id, offset));
527 } 527 }
528 528
529 void RenderFrameHostImpl::AccessibilitySetTextSelection( 529 void RenderFrameHostImpl::AccessibilitySetSelection(int anchor_object_id,
530 int object_id, int start_offset, int end_offset) { 530 int anchor_offset,
531 Send(new AccessibilityMsg_SetTextSelection( 531 int focus_object_id,
532 routing_id_, object_id, start_offset, end_offset)); 532 int focus_offset) {
533 Send(new AccessibilityMsg_SetSelection(routing_id_,
534 focus_object_id,
535 anchor_offset,
536 focus_object_id,
537 focus_offset));
533 } 538 }
534 539
535 void RenderFrameHostImpl::AccessibilitySetValue( 540 void RenderFrameHostImpl::AccessibilitySetValue(
536 int object_id, const base::string16& value) { 541 int object_id, const base::string16& value) {
537 Send(new AccessibilityMsg_SetValue(routing_id_, object_id, value)); 542 Send(new AccessibilityMsg_SetValue(routing_id_, object_id, value));
538 } 543 }
539 544
540 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const { 545 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const {
541 RenderWidgetHostView* view = render_view_host_->GetView(); 546 RenderWidgetHostView* view = render_view_host_->GetView();
542 if (view) 547 if (view)
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 BrowserPluginInstanceIDToAXTreeID(value))); 2260 BrowserPluginInstanceIDToAXTreeID(value)));
2256 break; 2261 break;
2257 case AX_CONTENT_INT_ATTRIBUTE_LAST: 2262 case AX_CONTENT_INT_ATTRIBUTE_LAST:
2258 NOTREACHED(); 2263 NOTREACHED();
2259 break; 2264 break;
2260 } 2265 }
2261 } 2266 }
2262 } 2267 }
2263 2268
2264 } // namespace content 2269 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698