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

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

Issue 606663002: Remove unused WebRemoteFrameImpl::viewImpl() helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | no next file » | 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698