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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 const gfx::Point& location, const blink::WebPluginAction& action) { | 2076 const gfx::Point& location, const blink::WebPluginAction& action) { |
2077 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 2077 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
2078 } | 2078 } |
2079 | 2079 |
2080 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { | 2080 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { |
2081 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); | 2081 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); |
2082 } | 2082 } |
2083 | 2083 |
2084 void RenderViewHostImpl::OnAccessibilityEvents( | 2084 void RenderViewHostImpl::OnAccessibilityEvents( |
2085 const std::vector<AccessibilityHostMsg_EventParams>& params) { | 2085 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
2086 if (view_ && !is_swapped_out_) { | 2086 if ((accessibility_mode() & AccessibilityModeFlagPlatform) && |
| 2087 view_ && |
| 2088 !is_swapped_out_) { |
2087 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 2089 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
2088 BrowserAccessibilityManager* manager = | 2090 BrowserAccessibilityManager* manager = |
2089 view_->GetBrowserAccessibilityManager(); | 2091 view_->GetBrowserAccessibilityManager(); |
2090 if (manager) | 2092 if (manager) |
2091 manager->OnAccessibilityEvents(params); | 2093 manager->OnAccessibilityEvents(params); |
2092 } | 2094 } |
2093 | 2095 |
2094 // Always send an ACK or the renderer can be in a bad state. | 2096 // Always send an ACK or the renderer can be in a bad state. |
2095 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 2097 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
2096 | 2098 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 void RenderViewHostImpl::AttachToFrameTree() { | 2257 void RenderViewHostImpl::AttachToFrameTree() { |
2256 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2258 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2257 | 2259 |
2258 frame_tree->ResetForMainFrameSwap(); | 2260 frame_tree->ResetForMainFrameSwap(); |
2259 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2261 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2260 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2262 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2261 } | 2263 } |
2262 } | 2264 } |
2263 | 2265 |
2264 } // namespace content | 2266 } // namespace content |
OLD | NEW |