| 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 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 const gfx::Point& location, const blink::WebPluginAction& action) { | 2058 const gfx::Point& location, const blink::WebPluginAction& action) { |
| 2059 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 2059 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
| 2060 } | 2060 } |
| 2061 | 2061 |
| 2062 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { | 2062 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { |
| 2063 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); | 2063 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); |
| 2064 } | 2064 } |
| 2065 | 2065 |
| 2066 void RenderViewHostImpl::OnAccessibilityEvents( | 2066 void RenderViewHostImpl::OnAccessibilityEvents( |
| 2067 const std::vector<AccessibilityHostMsg_EventParams>& params) { | 2067 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
| 2068 if (view_ && !is_swapped_out_) { | 2068 if ((accessibility_mode() & AccessibilityModeFlagPlatform) && |
| 2069 view_ && |
| 2070 !is_swapped_out_) { |
| 2069 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 2071 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
| 2070 BrowserAccessibilityManager* manager = | 2072 BrowserAccessibilityManager* manager = |
| 2071 view_->GetBrowserAccessibilityManager(); | 2073 view_->GetBrowserAccessibilityManager(); |
| 2072 if (manager) | 2074 if (manager) |
| 2073 manager->OnAccessibilityEvents(params); | 2075 manager->OnAccessibilityEvents(params); |
| 2074 } | 2076 } |
| 2075 | 2077 |
| 2076 // Always send an ACK or the renderer can be in a bad state. | 2078 // Always send an ACK or the renderer can be in a bad state. |
| 2077 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 2079 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
| 2078 | 2080 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2237 void RenderViewHostImpl::AttachToFrameTree() { | 2239 void RenderViewHostImpl::AttachToFrameTree() { |
| 2238 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2240 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 2239 | 2241 |
| 2240 frame_tree->ResetForMainFrameSwap(); | 2242 frame_tree->ResetForMainFrameSwap(); |
| 2241 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2243 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
| 2242 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2244 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
| 2243 } | 2245 } |
| 2244 } | 2246 } |
| 2245 | 2247 |
| 2246 } // namespace content | 2248 } // namespace content |
| OLD | NEW |