| 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 "web/WebRemoteFrameImpl.h" | 6 #include "web/WebRemoteFrameImpl.h" |
| 7 | 7 |
| 8 #include "core/frame/FrameOwner.h" | 8 #include "core/frame/FrameOwner.h" |
| 9 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
| 10 #include "core/frame/RemoteFrame.h" | 10 #include "core/frame/RemoteFrame.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 return false; | 276 return false; |
| 277 } | 277 } |
| 278 | 278 |
| 279 WebView* WebRemoteFrameImpl::view() const | 279 WebView* WebRemoteFrameImpl::view() const |
| 280 { | 280 { |
| 281 if (!frame()) | 281 if (!frame()) |
| 282 return 0; | 282 return 0; |
| 283 return WebViewImpl::fromPage(frame()->page()); | 283 return WebViewImpl::fromPage(frame()->page()); |
| 284 } | 284 } |
| 285 | 285 |
| 286 WebViewImpl* WebRemoteFrameImpl::viewImpl() const | |
| 287 { | |
| 288 if (!frame()) | |
| 289 return 0; | |
| 290 return WebViewImpl::fromPage(frame()->page()); | |
| 291 } | |
| 292 | |
| 293 void WebRemoteFrameImpl::removeChild(WebFrame* frame) | 286 void WebRemoteFrameImpl::removeChild(WebFrame* frame) |
| 294 { | 287 { |
| 295 WebFrame::removeChild(frame); | 288 WebFrame::removeChild(frame); |
| 296 m_ownersForChildren.remove(frame); | 289 m_ownersForChildren.remove(frame); |
| 297 } | 290 } |
| 298 | 291 |
| 299 WebDocument WebRemoteFrameImpl::document() const | 292 WebDocument WebRemoteFrameImpl::document() const |
| 300 { | 293 { |
| 301 return WebDocument(); | 294 return WebDocument(); |
| 302 } | 295 } |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const | 866 void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const |
| 874 { | 867 { |
| 875 ASSERT(source); | 868 ASSERT(source); |
| 876 WebLocalFrameImpl* localFrameImpl = toWebLocalFrameImpl(source); | 869 WebLocalFrameImpl* localFrameImpl = toWebLocalFrameImpl(source); |
| 877 client()->initializeChildFrame( | 870 client()->initializeChildFrame( |
| 878 localFrameImpl->frame()->view()->frameRect(), | 871 localFrameImpl->frame()->view()->frameRect(), |
| 879 localFrameImpl->frame()->view()->visibleContentScaleFactor()); | 872 localFrameImpl->frame()->view()->visibleContentScaleFactor()); |
| 880 } | 873 } |
| 881 | 874 |
| 882 } // namespace blink | 875 } // namespace blink |
| OLD | NEW |