OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 const gfx::Point& location, const blink::WebPluginAction& action) { | 2085 const gfx::Point& location, const blink::WebPluginAction& action) { |
2086 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 2086 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
2087 } | 2087 } |
2088 | 2088 |
2089 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { | 2089 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { |
2090 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); | 2090 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); |
2091 } | 2091 } |
2092 | 2092 |
2093 void RenderViewHostImpl::OnAccessibilityEvents( | 2093 void RenderViewHostImpl::OnAccessibilityEvents( |
2094 const std::vector<AccessibilityHostMsg_EventParams>& params) { | 2094 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
2095 if (view_ && !is_swapped_out_) { | 2095 if ((accessibility_mode() & AccessibilityModeFlagPlatform) && |
| 2096 view_ && |
| 2097 !is_swapped_out_) { |
2096 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 2098 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
2097 BrowserAccessibilityManager* manager = | 2099 BrowserAccessibilityManager* manager = |
2098 view_->GetBrowserAccessibilityManager(); | 2100 view_->GetBrowserAccessibilityManager(); |
2099 if (manager) | 2101 if (manager) |
2100 manager->OnAccessibilityEvents(params); | 2102 manager->OnAccessibilityEvents(params); |
2101 } | 2103 } |
2102 | 2104 |
2103 // Always send an ACK or the renderer can be in a bad state. | 2105 // Always send an ACK or the renderer can be in a bad state. |
2104 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 2106 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
2105 | 2107 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2264 void RenderViewHostImpl::AttachToFrameTree() { | 2266 void RenderViewHostImpl::AttachToFrameTree() { |
2265 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2267 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2266 | 2268 |
2267 frame_tree->ResetForMainFrameSwap(); | 2269 frame_tree->ResetForMainFrameSwap(); |
2268 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2270 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2269 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2271 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2270 } | 2272 } |
2271 } | 2273 } |
2272 | 2274 |
2273 } // namespace content | 2275 } // namespace content |
OLD | NEW |