| 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 |
| 169 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) | 174 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) |
| 170 { | 175 { |
| 171 if (m_remotePlatformLayer) | 176 if (m_remotePlatformLayer) |
| 172 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); | 177 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); |
| 173 m_remotePlatformLayer = layer; | 178 m_remotePlatformLayer = layer; |
| 174 if (m_remotePlatformLayer) | 179 if (m_remotePlatformLayer) |
| 175 GraphicsLayer::registerContentsLayer(layer); | 180 GraphicsLayer::registerContentsLayer(layer); |
| 176 | 181 |
| 177 ASSERT(owner()); | 182 ASSERT(owner()); |
| 178 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); | 183 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); |
| 179 } | 184 } |
| 180 | 185 |
| 186 RemoteFrameView* RemoteFrame::view() const |
| 187 { |
| 188 return m_view.get(); |
| 189 } |
| 190 |
| 181 } // namespace blink | 191 } // namespace blink |
| OLD | NEW |