Chromium Code Reviews| 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 && view_ && |
|
David Tseng
2014/01/23 18:44:19
nit: one expression per line
aboxhall
2014/01/27 18:03:15
clang-format formats it this way! :(
Fixed.
| |
| 2087 !is_swapped_out_) { | |
| 2087 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 2088 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
| 2088 BrowserAccessibilityManager* manager = | 2089 BrowserAccessibilityManager* manager = |
| 2089 view_->GetBrowserAccessibilityManager(); | 2090 view_->GetBrowserAccessibilityManager(); |
| 2090 if (manager) | 2091 if (manager) |
| 2091 manager->OnAccessibilityEvents(params); | 2092 manager->OnAccessibilityEvents(params); |
| 2092 } | 2093 } |
| 2093 | 2094 |
| 2094 // Always send an ACK or the renderer can be in a bad state. | 2095 // Always send an ACK or the renderer can be in a bad state. |
| 2095 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 2096 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
| 2096 | 2097 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2255 void RenderViewHostImpl::AttachToFrameTree() { | 2256 void RenderViewHostImpl::AttachToFrameTree() { |
| 2256 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2257 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 2257 | 2258 |
| 2258 frame_tree->ResetForMainFrameSwap(); | 2259 frame_tree->ResetForMainFrameSwap(); |
| 2259 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2260 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
| 2260 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2261 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
| 2261 } | 2262 } |
| 2262 } | 2263 } |
| 2263 | 2264 |
| 2264 } // namespace content | 2265 } // namespace content |
| OLD | NEW |