Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Side by Side Diff: third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp

Issue 2359553003: Replaced PassRefPtr copies with moves. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobRegistry.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "web/RemoteFrameClientImpl.h" 5 #include "web/RemoteFrameClientImpl.h"
6 6
7 #include "core/events/KeyboardEvent.h" 7 #include "core/events/KeyboardEvent.h"
8 #include "core/events/MouseEvent.h" 8 #include "core/events/MouseEvent.h"
9 #include "core/events/WheelEvent.h" 9 #include "core/events/WheelEvent.h"
10 #include "core/frame/RemoteFrame.h" 10 #include "core/frame/RemoteFrame.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // session history length. For now, return static value for the initial 144 // session history length. For now, return static value for the initial
145 // navigation and the subsequent one moving the frame out-of-process. 145 // navigation and the subsequent one moving the frame out-of-process.
146 // See https://crbug.com/501116. 146 // See https://crbug.com/501116.
147 return 2; 147 return 2;
148 } 148 }
149 149
150 void RemoteFrameClientImpl::forwardPostMessage( 150 void RemoteFrameClientImpl::forwardPostMessage(
151 MessageEvent* event, PassRefPtr<SecurityOrigin> target, LocalFrame* sourceFr ame) const 151 MessageEvent* event, PassRefPtr<SecurityOrigin> target, LocalFrame* sourceFr ame) const
152 { 152 {
153 if (m_webFrame->client()) 153 if (m_webFrame->client())
154 m_webFrame->client()->forwardPostMessage(WebLocalFrameImpl::fromFrame(so urceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event)); 154 m_webFrame->client()->forwardPostMessage(WebLocalFrameImpl::fromFrame(so urceFrame), m_webFrame, WebSecurityOrigin(std::move(target)), WebDOMMessageEvent (event));
155 } 155 }
156 156
157 // FIXME: Remove this code once we have input routing in the browser 157 // FIXME: Remove this code once we have input routing in the browser
158 // process. See http://crbug.com/339659. 158 // process. See http://crbug.com/339659.
159 void RemoteFrameClientImpl::forwardInputEvent(Event* event) 159 void RemoteFrameClientImpl::forwardInputEvent(Event* event)
160 { 160 {
161 // It is possible for a platform event to cause the remote iframe element 161 // It is possible for a platform event to cause the remote iframe element
162 // to be hidden, which destroys the layout object (for instance, a mouse 162 // to be hidden, which destroys the layout object (for instance, a mouse
163 // event that moves between elements will trigger a mouseout on the old 163 // event that moves between elements will trigger a mouseout on the old
164 // element, which might hide the new element). In that case we do not 164 // element, which might hide the new element). In that case we do not
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 { 196 {
197 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source )); 197 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source ));
198 } 198 }
199 199
200 void RemoteFrameClientImpl::visibilityChanged(bool visible) 200 void RemoteFrameClientImpl::visibilityChanged(bool visible)
201 { 201 {
202 m_webFrame->client()->visibilityChanged(visible); 202 m_webFrame->client()->visibilityChanged(visible);
203 } 203 }
204 204
205 } // namespace blink 205 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobRegistry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698