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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 Send(new AccessibilityMsg_ScrollToPoint( | 450 Send(new AccessibilityMsg_ScrollToPoint( |
451 routing_id_, acc_obj_id, point)); | 451 routing_id_, acc_obj_id, point)); |
452 } | 452 } |
453 | 453 |
454 void RenderFrameHostImpl::AccessibilitySetTextSelection( | 454 void RenderFrameHostImpl::AccessibilitySetTextSelection( |
455 int object_id, int start_offset, int end_offset) { | 455 int object_id, int start_offset, int end_offset) { |
456 Send(new AccessibilityMsg_SetTextSelection( | 456 Send(new AccessibilityMsg_SetTextSelection( |
457 routing_id_, object_id, start_offset, end_offset)); | 457 routing_id_, object_id, start_offset, end_offset)); |
458 } | 458 } |
459 | 459 |
| 460 void RenderFrameHostImpl::AccessibilitySetValue( |
| 461 int object_id, const base::string16& value) { |
| 462 Send(new AccessibilityMsg_SetValue(routing_id_, object_id, value)); |
| 463 } |
| 464 |
460 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const { | 465 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const { |
461 RenderWidgetHostView* view = render_view_host_->GetView(); | 466 RenderWidgetHostView* view = render_view_host_->GetView(); |
462 if (view) | 467 if (view) |
463 return view->HasFocus(); | 468 return view->HasFocus(); |
464 return false; | 469 return false; |
465 } | 470 } |
466 | 471 |
467 gfx::Rect RenderFrameHostImpl::AccessibilityGetViewBounds() const { | 472 gfx::Rect RenderFrameHostImpl::AccessibilityGetViewBounds() const { |
468 RenderWidgetHostView* view = render_view_host_->GetView(); | 473 RenderWidgetHostView* view = render_view_host_->GetView(); |
469 if (view) | 474 if (view) |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 // Clear any state if a pending navigation is canceled or preempted. | 1602 // Clear any state if a pending navigation is canceled or preempted. |
1598 if (suspended_nav_params_) | 1603 if (suspended_nav_params_) |
1599 suspended_nav_params_.reset(); | 1604 suspended_nav_params_.reset(); |
1600 | 1605 |
1601 TRACE_EVENT_ASYNC_END0("navigation", | 1606 TRACE_EVENT_ASYNC_END0("navigation", |
1602 "RenderFrameHostImpl navigation suspended", this); | 1607 "RenderFrameHostImpl navigation suspended", this); |
1603 navigations_suspended_ = false; | 1608 navigations_suspended_ = false; |
1604 } | 1609 } |
1605 | 1610 |
1606 } // namespace content | 1611 } // namespace content |
OLD | NEW |