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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 860 |
861 void WebRemoteFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame> frame) | 861 void WebRemoteFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame> frame) |
862 { | 862 { |
863 m_frame = frame; | 863 m_frame = frame; |
864 } | 864 } |
865 | 865 |
866 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) | 866 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) |
867 { | 867 { |
868 if (!frame.client()) | 868 if (!frame.client()) |
869 return 0; | 869 return 0; |
870 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); | 870 return static_cast<RemoteFrameClientImpl*>(frame.client())->webFrame(); |
871 } | 871 } |
872 | 872 |
873 void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const | 873 void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const |
874 { | 874 { |
875 ASSERT(source); | 875 ASSERT(source); |
876 WebLocalFrameImpl* localFrameImpl = toWebLocalFrameImpl(source); | 876 WebLocalFrameImpl* localFrameImpl = toWebLocalFrameImpl(source); |
877 client()->initializeChildFrame( | 877 client()->initializeChildFrame( |
878 localFrameImpl->frame()->view()->frameRect(), | 878 localFrameImpl->frame()->view()->frameRect(), |
879 localFrameImpl->frame()->view()->visibleContentScaleFactor()); | 879 localFrameImpl->frame()->view()->visibleContentScaleFactor()); |
880 } | 880 } |
881 | 881 |
882 } // namespace blink | 882 } // namespace blink |
OLD | NEW |