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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 RemoteSecurityContext* RemoteFrame::securityContext() const { | 116 RemoteSecurityContext* RemoteFrame::securityContext() const { |
117 return m_securityContext.get(); | 117 return m_securityContext.get(); |
118 } | 118 } |
119 | 119 |
120 bool RemoteFrame::shouldClose() { | 120 bool RemoteFrame::shouldClose() { |
121 // TODO(nasko): Implement running the beforeunload handler in the actual | 121 // TODO(nasko): Implement running the beforeunload handler in the actual |
122 // LocalFrame running in a different process and getting back a real result. | 122 // LocalFrame running in a different process and getting back a real result. |
123 return true; | 123 return true; |
124 } | 124 } |
125 | 125 |
126 void RemoteFrame::setDocumentHasReceivedUserGesture() { | |
127 client()->setHasReceivedUserGesture(); | |
128 } | |
129 | |
130 void RemoteFrame::forwardInputEvent(Event* event) { | 126 void RemoteFrame::forwardInputEvent(Event* event) { |
131 client()->forwardInputEvent(event); | 127 client()->forwardInputEvent(event); |
132 } | 128 } |
133 | 129 |
134 void RemoteFrame::frameRectsChanged(const IntRect& frameRect) { | 130 void RemoteFrame::frameRectsChanged(const IntRect& frameRect) { |
135 client()->frameRectsChanged(frameRect); | 131 client()->frameRectsChanged(frameRect); |
136 } | 132 } |
137 | 133 |
138 void RemoteFrame::visibilityChanged(bool visible) { | 134 void RemoteFrame::visibilityChanged(bool visible) { |
139 if (client()) | 135 if (client()) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 FrameVector childrenToDetach; | 188 FrameVector childrenToDetach; |
193 childrenToDetach.reserveCapacity(tree().childCount()); | 189 childrenToDetach.reserveCapacity(tree().childCount()); |
194 for (Frame* child = tree().firstChild(); child; | 190 for (Frame* child = tree().firstChild(); child; |
195 child = child->tree().nextSibling()) | 191 child = child->tree().nextSibling()) |
196 childrenToDetach.push_back(child); | 192 childrenToDetach.push_back(child); |
197 for (const auto& child : childrenToDetach) | 193 for (const auto& child : childrenToDetach) |
198 child->detach(FrameDetachType::Remove); | 194 child->detach(FrameDetachType::Remove); |
199 } | 195 } |
200 | 196 |
201 } // namespace blink | 197 } // namespace blink |
OLD | NEW |