| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |