| 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 "web/WebRemoteFrameImpl.h" | 5 #include "web/WebRemoteFrameImpl.h" |
| 6 | 6 |
| 7 #include "core/dom/Fullscreen.h" | 7 #include "core/dom/Fullscreen.h" |
| 8 #include "core/dom/RemoteSecurityContext.h" | 8 #include "core/dom/RemoteSecurityContext.h" |
| 9 #include "core/dom/SecurityContext.h" | 9 #include "core/dom/SecurityContext.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool WebRemoteFrameImpl::hasHorizontalScrollbar() const { | 129 bool WebRemoteFrameImpl::hasHorizontalScrollbar() const { |
| 130 NOTREACHED(); | 130 NOTREACHED(); |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 | 133 |
| 134 bool WebRemoteFrameImpl::hasVerticalScrollbar() const { | 134 bool WebRemoteFrameImpl::hasVerticalScrollbar() const { |
| 135 NOTREACHED(); | 135 NOTREACHED(); |
| 136 return false; | 136 return false; |
| 137 } | 137 } |
| 138 | 138 |
| 139 void WebRemoteFrameImpl::collapseFrameOwner(bool collapsed) { |
| 140 DCHECK(frame()->owner()->isLocal()); |
| 141 frame()->owner()->setShouldCollapse(collapsed); |
| 142 } |
| 143 |
| 139 WebView* WebRemoteFrameImpl::view() const { | 144 WebView* WebRemoteFrameImpl::view() const { |
| 140 if (!frame()) | 145 if (!frame()) |
| 141 return nullptr; | 146 return nullptr; |
| 142 return WebViewImpl::fromPage(frame()->page()); | 147 return WebViewImpl::fromPage(frame()->page()); |
| 143 } | 148 } |
| 144 | 149 |
| 145 WebDocument WebRemoteFrameImpl::document() const { | 150 WebDocument WebRemoteFrameImpl::document() const { |
| 146 // TODO(dcheng): this should also ASSERT_NOT_REACHED, but a lot of | 151 // TODO(dcheng): this should also ASSERT_NOT_REACHED, but a lot of |
| 147 // code tries to access the document of a remote frame at the moment. | 152 // code tries to access the document of a remote frame at the moment. |
| 148 return WebDocument(); | 153 return WebDocument(); |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 } | 528 } |
| 524 | 529 |
| 525 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 530 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 526 WebRemoteFrameClient* client) | 531 WebRemoteFrameClient* client) |
| 527 : WebRemoteFrame(scope), | 532 : WebRemoteFrame(scope), |
| 528 m_frameClient(RemoteFrameClientImpl::create(this)), | 533 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 529 m_client(client), | 534 m_client(client), |
| 530 m_selfKeepAlive(this) {} | 535 m_selfKeepAlive(this) {} |
| 531 | 536 |
| 532 } // namespace blink | 537 } // namespace blink |
| OLD | NEW |