| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 if (ownerLayoutObject()) | 160 if (ownerLayoutObject()) |
| 161 deprecatedLocalOwner()->setWidget(m_view); | 161 deprecatedLocalOwner()->setWidget(m_view); |
| 162 } | 162 } |
| 163 | 163 |
| 164 RemoteFrameClient* RemoteFrame::remoteFrameClient() const | 164 RemoteFrameClient* RemoteFrame::remoteFrameClient() const |
| 165 { | 165 { |
| 166 return static_cast<RemoteFrameClient*>(client()); | 166 return static_cast<RemoteFrameClient*>(client()); |
| 167 } | 167 } |
| 168 | 168 |
| 169 WindowProxyManager* RemoteFrame::windowProxyManager() const | |
| 170 { | |
| 171 return m_windowProxyManager.get(); | |
| 172 } | |
| 173 | |
| 174 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) | 169 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) |
| 175 { | 170 { |
| 176 if (m_remotePlatformLayer) | 171 if (m_remotePlatformLayer) |
| 177 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); | 172 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); |
| 178 m_remotePlatformLayer = layer; | 173 m_remotePlatformLayer = layer; |
| 179 if (m_remotePlatformLayer) | 174 if (m_remotePlatformLayer) |
| 180 GraphicsLayer::registerContentsLayer(layer); | 175 GraphicsLayer::registerContentsLayer(layer); |
| 181 | 176 |
| 182 ASSERT(owner()); | 177 ASSERT(owner()); |
| 183 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); | 178 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); |
| 184 } | 179 } |
| 185 | 180 |
| 186 RemoteFrameView* RemoteFrame::view() const | |
| 187 { | |
| 188 return m_view.get(); | |
| 189 } | |
| 190 | |
| 191 } // namespace blink | 181 } // namespace blink |
| OLD | NEW |