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