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 "config.h" | 5 #include "config.h" |
6 #include "core/frame/RemoteFrame.h" | 6 #include "core/frame/RemoteFrame.h" |
7 | 7 |
8 #include "bindings/core/v8/WindowProxy.h" | 8 #include "bindings/core/v8/WindowProxy.h" |
9 #include "bindings/core/v8/WindowProxyManager.h" | 9 #include "bindings/core/v8/WindowProxyManager.h" |
10 #include "core/dom/RemoteSecurityContext.h" | 10 #include "core/dom/RemoteSecurityContext.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 WindowProxy* RemoteFrame::windowProxy(DOMWrapperWorld& world) | 54 WindowProxy* RemoteFrame::windowProxy(DOMWrapperWorld& world) |
55 { | 55 { |
56 WindowProxy* windowProxy = m_windowProxyManager->windowProxy(world); | 56 WindowProxy* windowProxy = m_windowProxyManager->windowProxy(world); |
57 ASSERT(windowProxy); | 57 ASSERT(windowProxy); |
58 windowProxy->initializeIfNeeded(); | 58 windowProxy->initializeIfNeeded(); |
59 return windowProxy; | 59 return windowProxy; |
60 } | 60 } |
61 | 61 |
| 62 Widget* RemoteFrame::widget() const |
| 63 { |
| 64 return view(); |
| 65 } |
| 66 |
62 void RemoteFrame::navigate(Document& originDocument, const KURL& url, bool lockB
ackForwardList) | 67 void RemoteFrame::navigate(Document& originDocument, const KURL& url, bool lockB
ackForwardList) |
63 { | 68 { |
64 // The process where this frame actually lives won't have sufficient informa
tion to determine | 69 // The process where this frame actually lives won't have sufficient informa
tion to determine |
65 // correct referrer, since it won't have access to the originDocument. Set i
t now. | 70 // correct referrer, since it won't have access to the originDocument. Set i
t now. |
66 ResourceRequest request(url); | 71 ResourceRequest request(url); |
67 request.setHTTPReferrer(SecurityPolicy::generateReferrer(originDocument.refe
rrerPolicy(), url, originDocument.outgoingReferrer())); | 72 request.setHTTPReferrer(SecurityPolicy::generateReferrer(originDocument.refe
rrerPolicy(), url, originDocument.outgoingReferrer())); |
68 remoteFrameClient()->navigate(request, lockBackForwardList); | 73 remoteFrameClient()->navigate(request, lockBackForwardList); |
69 } | 74 } |
70 | 75 |
71 void RemoteFrame::reload(ReloadPolicy reloadPolicy, ClientRedirectPolicy clientR
edirectPolicy) | 76 void RemoteFrame::reload(ReloadPolicy reloadPolicy, ClientRedirectPolicy clientR
edirectPolicy) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 if (m_remotePlatformLayer) | 159 if (m_remotePlatformLayer) |
155 GraphicsLayer::registerContentsLayer(layer); | 160 GraphicsLayer::registerContentsLayer(layer); |
156 | 161 |
157 ASSERT(owner()); | 162 ASSERT(owner()); |
158 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); | 163 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); |
159 if (LayoutPart* layoutObject = ownerLayoutObject()) | 164 if (LayoutPart* layoutObject = ownerLayoutObject()) |
160 layoutObject->layer()->updateSelfPaintingLayer(); | 165 layoutObject->layer()->updateSelfPaintingLayer(); |
161 } | 166 } |
162 | 167 |
163 } // namespace blink | 168 } // namespace blink |
OLD | NEW |