| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void RemoteFrame::forwardInputEvent(Event* event) | 132 void RemoteFrame::forwardInputEvent(Event* event) |
| 133 { | 133 { |
| 134 remoteFrameClient()->forwardInputEvent(event); | 134 remoteFrameClient()->forwardInputEvent(event); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void RemoteFrame::frameRectsChanged(const IntRect& frameRect) | 137 void RemoteFrame::frameRectsChanged(const IntRect& frameRect) |
| 138 { | 138 { |
| 139 remoteFrameClient()->frameRectsChanged(frameRect); | 139 remoteFrameClient()->frameRectsChanged(frameRect); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void RemoteFrame::visibilityChanged(bool visible) |
| 143 { |
| 144 if (remoteFrameClient()) |
| 145 remoteFrameClient()->visibilityChanged(visible); |
| 146 } |
| 147 |
| 142 void RemoteFrame::setView(PassRefPtrWillBeRawPtr<RemoteFrameView> view) | 148 void RemoteFrame::setView(PassRefPtrWillBeRawPtr<RemoteFrameView> view) |
| 143 { | 149 { |
| 144 // Oilpan: as RemoteFrameView performs no finalization actions, | 150 // Oilpan: as RemoteFrameView performs no finalization actions, |
| 145 // no explicit dispose() of it needed here. (cf. FrameView::dispose().) | 151 // no explicit dispose() of it needed here. (cf. FrameView::dispose().) |
| 146 m_view = view; | 152 m_view = view; |
| 147 } | 153 } |
| 148 | 154 |
| 149 void RemoteFrame::createView() | 155 void RemoteFrame::createView() |
| 150 { | 156 { |
| 151 // If the RemoteFrame does not have a LocalFrame parent, there's no need to | 157 // If the RemoteFrame does not have a LocalFrame parent, there's no need to |
| (...skipping 20 matching lines...) Expand all Loading... |
| 172 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); | 178 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); |
| 173 m_remotePlatformLayer = layer; | 179 m_remotePlatformLayer = layer; |
| 174 if (m_remotePlatformLayer) | 180 if (m_remotePlatformLayer) |
| 175 GraphicsLayer::registerContentsLayer(layer); | 181 GraphicsLayer::registerContentsLayer(layer); |
| 176 | 182 |
| 177 ASSERT(owner()); | 183 ASSERT(owner()); |
| 178 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); | 184 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); |
| 179 } | 185 } |
| 180 | 186 |
| 181 } // namespace blink | 187 } // namespace blink |
| OLD | NEW |