OLD | NEW |
---|---|
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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
522 Send(new AccessibilityMsg_ScrollToPoint( | 522 Send(new AccessibilityMsg_ScrollToPoint( |
523 routing_id_, acc_obj_id, point)); | 523 routing_id_, acc_obj_id, point)); |
524 } | 524 } |
525 | 525 |
526 void RenderFrameHostImpl::AccessibilitySetScrollOffset( | 526 void RenderFrameHostImpl::AccessibilitySetScrollOffset( |
527 int acc_obj_id, const gfx::Point& offset) { | 527 int acc_obj_id, const gfx::Point& offset) { |
528 Send(new AccessibilityMsg_SetScrollOffset( | 528 Send(new AccessibilityMsg_SetScrollOffset( |
529 routing_id_, acc_obj_id, offset)); | 529 routing_id_, acc_obj_id, offset)); |
530 } | 530 } |
531 | 531 |
532 void RenderFrameHostImpl::AccessibilitySetTextSelection( | 532 void RenderFrameHostImpl::AccessibilitySetSelection( |
533 int object_id, int start_offset, int end_offset) { | 533 int anchor_object_id, int anchor_offset, |
534 Send(new AccessibilityMsg_SetTextSelection( | 534 int focus_object_id, int focus_offset) { |
nasko
2015/09/23 16:08:34
Each parameter should be on a new line.
| |
535 routing_id_, object_id, start_offset, end_offset)); | 535 Send(new AccessibilityMsg_SetSelection( |
536 routing_id_, focus_object_id, anchor_offset, | |
537 focus_object_id, focus_offset)); | |
536 } | 538 } |
537 | 539 |
538 void RenderFrameHostImpl::AccessibilitySetValue( | 540 void RenderFrameHostImpl::AccessibilitySetValue( |
539 int object_id, const base::string16& value) { | 541 int object_id, const base::string16& value) { |
540 Send(new AccessibilityMsg_SetValue(routing_id_, object_id, value)); | 542 Send(new AccessibilityMsg_SetValue(routing_id_, object_id, value)); |
541 } | 543 } |
542 | 544 |
543 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const { | 545 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const { |
544 RenderWidgetHostView* view = render_view_host_->GetView(); | 546 RenderWidgetHostView* view = render_view_host_->GetView(); |
545 if (view) | 547 if (view) |
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2249 BrowserPluginInstanceIDToAXTreeID(value))); | 2251 BrowserPluginInstanceIDToAXTreeID(value))); |
2250 break; | 2252 break; |
2251 case AX_CONTENT_INT_ATTRIBUTE_LAST: | 2253 case AX_CONTENT_INT_ATTRIBUTE_LAST: |
2252 NOTREACHED(); | 2254 NOTREACHED(); |
2253 break; | 2255 break; |
2254 } | 2256 } |
2255 } | 2257 } |
2256 } | 2258 } |
2257 | 2259 |
2258 } // namespace content | 2260 } // namespace content |
OLD | NEW |