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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrameView.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 the Call to WebRemoteFrameImpl::close() and WebViewHelper::reset() in the Destructor of the … Created 4 years, 11 months 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 "core/frame/RemoteFrameView.h" 5 #include "core/frame/RemoteFrameView.h"
6 6
7 #include "core/frame/RemoteFrame.h" 7 #include "core/frame/RemoteFrame.h"
8 #include "core/html/HTMLFrameOwnerElement.h" 8 #include "core/html/HTMLFrameOwnerElement.h"
9 #include "core/layout/LayoutPart.h" 9 #include "core/layout/LayoutPart.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 Widget::setFrameRect(newRect); 59 Widget::setFrameRect(newRect);
60 60
61 frameRectsChanged(); 61 frameRectsChanged();
62 } 62 }
63 63
64 void RemoteFrameView::frameRectsChanged() 64 void RemoteFrameView::frameRectsChanged()
65 { 65 {
66 m_remoteFrame->frameRectsChanged(frameRect()); 66 m_remoteFrame->frameRectsChanged(frameRect());
67 } 67 }
68 68
69 void RemoteFrameView::hide()
70 {
71 setSelfVisible(false);
72
73 Widget::hide();
74
75 m_remoteFrame->visibilityChanged(false);
76 }
77
78 void RemoteFrameView::show()
79 {
80 setSelfVisible(true);
81
82 Widget::show();
83
84 m_remoteFrame->visibilityChanged(true);
85 }
86
87 void RemoteFrameView::setParentVisible(bool visible)
88 {
89 if (isParentVisible() == visible)
90 return;
91
92 Widget::setParentVisible(visible);
93 if (!isSelfVisible())
94 return;
95
96 m_remoteFrame->visibilityChanged(isVisible());
97 }
98
69 DEFINE_TRACE(RemoteFrameView) 99 DEFINE_TRACE(RemoteFrameView)
70 { 100 {
71 visitor->trace(m_remoteFrame); 101 visitor->trace(m_remoteFrame);
72 Widget::trace(visitor); 102 Widget::trace(visitor);
73 } 103 }
74 104
75 } // namespace blink 105 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RemoteFrameView.h ('k') | third_party/WebKit/Source/web/RemoteFrameClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698