Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrame.cpp

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed RenderWidgetHostViewChildFrame::SetVisibility Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698