| 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/RemoteFrameView.h" | 6 #include "core/frame/RemoteFrameView.h" |
| 7 | 7 |
| 8 #include "core/frame/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
| 9 #include "core/layout/LayoutPart.h" | 9 #include "core/layout/LayoutPart.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 Widget::setFrameRect(newRect); | 49 Widget::setFrameRect(newRect); |
| 50 | 50 |
| 51 frameRectsChanged(); | 51 frameRectsChanged(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void RemoteFrameView::frameRectsChanged() | 54 void RemoteFrameView::frameRectsChanged() |
| 55 { | 55 { |
| 56 m_remoteFrame->frameRectsChanged(frameRect()); | 56 m_remoteFrame->frameRectsChanged(frameRect()); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void RemoteFrameView::hide() |
| 60 { |
| 61 setSelfVisible(false); |
| 62 |
| 63 Widget::hide(); |
| 64 |
| 65 m_remoteFrame->visibilityChanged(false); |
| 66 } |
| 67 |
| 68 void RemoteFrameView::show() |
| 69 { |
| 70 setSelfVisible(true); |
| 71 |
| 72 Widget::show(); |
| 73 |
| 74 m_remoteFrame->visibilityChanged(true); |
| 75 } |
| 76 |
| 77 void RemoteFrameView::setParentVisible(bool visible) |
| 78 { |
| 79 if (isParentVisible() == visible) |
| 80 return; |
| 81 |
| 82 Widget::setParentVisible(visible); |
| 83 |
| 84 if (!isSelfVisible()) |
| 85 return; |
| 86 |
| 87 m_remoteFrame->visibilityChanged(isVisible()); |
| 88 } |
| 89 |
| 59 DEFINE_TRACE(RemoteFrameView) | 90 DEFINE_TRACE(RemoteFrameView) |
| 60 { | 91 { |
| 61 visitor->trace(m_remoteFrame); | 92 visitor->trace(m_remoteFrame); |
| 62 Widget::trace(visitor); | 93 Widget::trace(visitor); |
| 63 } | 94 } |
| 64 | 95 |
| 65 } // namespace blink | 96 } // namespace blink |
| OLD | NEW |