| 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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 if (accessibility_reset_token_ != reset_token) { | 1106 if (accessibility_reset_token_ != reset_token) { |
| 1107 Send(new AccessibilityMsg_Events_ACK(routing_id_)); | 1107 Send(new AccessibilityMsg_Events_ACK(routing_id_)); |
| 1108 return; | 1108 return; |
| 1109 } | 1109 } |
| 1110 accessibility_reset_token_ = 0; | 1110 accessibility_reset_token_ = 0; |
| 1111 | 1111 |
| 1112 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( | 1112 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( |
| 1113 render_view_host_->GetView()); | 1113 render_view_host_->GetView()); |
| 1114 | 1114 |
| 1115 AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode(); | 1115 AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode(); |
| 1116 |
| 1116 if ((accessibility_mode != AccessibilityModeOff) && view && | 1117 if ((accessibility_mode != AccessibilityModeOff) && view && |
| 1117 RenderFrameHostImpl::IsRFHStateActive(rfh_state())) { | 1118 RenderFrameHostImpl::IsRFHStateActive(rfh_state())) { |
| 1118 if (accessibility_mode & AccessibilityModeFlagPlatform) { | 1119 if (accessibility_mode & AccessibilityModeFlagPlatform) { |
| 1119 GetOrCreateBrowserAccessibilityManager(); | 1120 GetOrCreateBrowserAccessibilityManager(); |
| 1120 if (browser_accessibility_manager_) | 1121 if (browser_accessibility_manager_) |
| 1121 browser_accessibility_manager_->OnAccessibilityEvents(params); | 1122 browser_accessibility_manager_->OnAccessibilityEvents(params); |
| 1122 } | 1123 } |
| 1123 | 1124 |
| 1124 if (browser_accessibility_manager_) { | 1125 if (browser_accessibility_manager_) { |
| 1125 // Get the frame routing ids from out-of-process iframes and | 1126 // Get the frame routing ids from out-of-process iframes and |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 // Clear any state if a pending navigation is canceled or preempted. | 1632 // Clear any state if a pending navigation is canceled or preempted. |
| 1632 if (suspended_nav_params_) | 1633 if (suspended_nav_params_) |
| 1633 suspended_nav_params_.reset(); | 1634 suspended_nav_params_.reset(); |
| 1634 | 1635 |
| 1635 TRACE_EVENT_ASYNC_END0("navigation", | 1636 TRACE_EVENT_ASYNC_END0("navigation", |
| 1636 "RenderFrameHostImpl navigation suspended", this); | 1637 "RenderFrameHostImpl navigation suspended", this); |
| 1637 navigations_suspended_ = false; | 1638 navigations_suspended_ = false; |
| 1638 } | 1639 } |
| 1639 | 1640 |
| 1640 } // namespace content | 1641 } // namespace content |
| OLD | NEW |