| 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 "core/frame/RemoteFrame.h" | 5 #include "core/frame/RemoteFrame.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/WindowProxy.h" | 7 #include "bindings/core/v8/WindowProxy.h" |
| 8 #include "bindings/core/v8/WindowProxyManager.h" | 8 #include "bindings/core/v8/WindowProxyManager.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 RemoteSecurityContext* RemoteFrame::securityContext() const { | 122 RemoteSecurityContext* RemoteFrame::securityContext() const { |
| 123 return m_securityContext.get(); | 123 return m_securityContext.get(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool RemoteFrame::shouldClose() { | 126 bool RemoteFrame::shouldClose() { |
| 127 // TODO(nasko): Implement running the beforeunload handler in the actual | 127 // TODO(nasko): Implement running the beforeunload handler in the actual |
| 128 // LocalFrame running in a different process and getting back a real result. | 128 // LocalFrame running in a different process and getting back a real result. |
| 129 return true; | 129 return true; |
| 130 } | 130 } |
| 131 | 131 |
| 132 void RemoteFrame::setDocumentHasReceivedUserGesture() { |
| 133 client()->setHasReceivedUserGesture(); |
| 134 } |
| 135 |
| 132 void RemoteFrame::forwardInputEvent(Event* event) { | 136 void RemoteFrame::forwardInputEvent(Event* event) { |
| 133 client()->forwardInputEvent(event); | 137 client()->forwardInputEvent(event); |
| 134 } | 138 } |
| 135 | 139 |
| 136 void RemoteFrame::frameRectsChanged(const IntRect& frameRect) { | 140 void RemoteFrame::frameRectsChanged(const IntRect& frameRect) { |
| 137 client()->frameRectsChanged(frameRect); | 141 client()->frameRectsChanged(frameRect); |
| 138 } | 142 } |
| 139 | 143 |
| 140 void RemoteFrame::visibilityChanged(bool visible) { | 144 void RemoteFrame::visibilityChanged(bool visible) { |
| 141 if (client()) | 145 if (client()) |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 FrameVector childrenToDetach; | 198 FrameVector childrenToDetach; |
| 195 childrenToDetach.reserveCapacity(tree().childCount()); | 199 childrenToDetach.reserveCapacity(tree().childCount()); |
| 196 for (Frame* child = tree().firstChild(); child; | 200 for (Frame* child = tree().firstChild(); child; |
| 197 child = child->tree().nextSibling()) | 201 child = child->tree().nextSibling()) |
| 198 childrenToDetach.append(child); | 202 childrenToDetach.append(child); |
| 199 for (const auto& child : childrenToDetach) | 203 for (const auto& child : childrenToDetach) |
| 200 child->detach(FrameDetachType::Remove); | 204 child->detach(FrameDetachType::Remove); |
| 201 } | 205 } |
| 202 | 206 |
| 203 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |