Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 573353002: Plumbing toward transitioning remote frame back to a local frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: forward declarations, drop a spurious parameter Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698