| 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 "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 Loading... |
| 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 |
| OLD | NEW |