| 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/exported/WebRemoteFrameImpl.h" | 5 #include "core/exported/WebRemoteFrameImpl.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/WindowProxy.h" | 7 #include "bindings/core/v8/WindowProxy.h" |
| 8 #include "core/dom/Fullscreen.h" | 8 #include "core/dom/Fullscreen.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/dom/SecurityContext.h" | 10 #include "core/dom/SecurityContext.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 WebView* WebRemoteFrameImpl::View() const { | 117 WebView* WebRemoteFrameImpl::View() const { |
| 118 if (!GetFrame()) { | 118 if (!GetFrame()) { |
| 119 return nullptr; | 119 return nullptr; |
| 120 } | 120 } |
| 121 DCHECK(GetFrame()->GetPage()); | 121 DCHECK(GetFrame()->GetPage()); |
| 122 return GetFrame()->GetPage()->GetChromeClient().GetWebView(); | 122 return GetFrame()->GetPage()->GetChromeClient().GetWebView(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 WebDocument WebRemoteFrameImpl::GetDocument() const { | |
| 126 // TODO(dcheng): this should also ASSERT_NOT_REACHED, but a lot of | |
| 127 // code tries to access the document of a remote frame at the moment. | |
| 128 return WebDocument(); | |
| 129 } | |
| 130 | |
| 131 WebPerformance WebRemoteFrameImpl::Performance() const { | 125 WebPerformance WebRemoteFrameImpl::Performance() const { |
| 132 NOTREACHED(); | 126 NOTREACHED(); |
| 133 return WebPerformance(); | 127 return WebPerformance(); |
| 134 } | 128 } |
| 135 | 129 |
| 136 void WebRemoteFrameImpl::Reload(WebFrameLoadType) { | 130 void WebRemoteFrameImpl::Reload(WebFrameLoadType) { |
| 137 NOTREACHED(); | 131 NOTREACHED(); |
| 138 } | 132 } |
| 139 | 133 |
| 140 void WebRemoteFrameImpl::ReloadWithOverrideURL(const WebURL& override_url, | 134 void WebRemoteFrameImpl::ReloadWithOverrideURL(const WebURL& override_url, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 } | 380 } |
| 387 | 381 |
| 388 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 382 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 389 WebRemoteFrameClient* client) | 383 WebRemoteFrameClient* client) |
| 390 : WebRemoteFrameBase(scope), | 384 : WebRemoteFrameBase(scope), |
| 391 frame_client_(RemoteFrameClientImpl::Create(this)), | 385 frame_client_(RemoteFrameClientImpl::Create(this)), |
| 392 client_(client), | 386 client_(client), |
| 393 self_keep_alive_(this) {} | 387 self_keep_alive_(this) {} |
| 394 | 388 |
| 395 } // namespace blink | 389 } // namespace blink |
| OLD | NEW |