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

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

Issue 1319863006: (blink) Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address nits Created 5 years, 3 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/FrameLoaderClientImpl.h ('k') | Source/web/RemoteBridgeFrameOwner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 m_webFrame->client()->didChangeName(m_webFrame, name); 839 m_webFrame->client()->didChangeName(m_webFrame, name);
840 } 840 }
841 841
842 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag s flags) 842 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag s flags)
843 { 843 {
844 if (!m_webFrame->client()) 844 if (!m_webFrame->client())
845 return; 845 return;
846 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags)); 846 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
847 } 847 }
848 848
849 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(Frame* childFrame, Scr ollbarMode scrollingMode, int marginWidth, int marginHeight)
850 {
851 if (!m_webFrame->client())
852 return;
853
854 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(chil dFrame), WebFrameOwnerProperties(static_cast<WebFrameOwnerProperties::ScrollingM ode>(scrollingMode), marginWidth, marginHeight));
855 }
856
849 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) 857 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle)
850 { 858 {
851 m_webFrame->client()->willOpenWebSocket(handle); 859 m_webFrame->client()->willOpenWebSocket(handle);
852 } 860 }
853 861
854 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe erConnectionHandler* handler) 862 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe erConnectionHandler* handler)
855 { 863 {
856 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle r); 864 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle r);
857 } 865 }
858 866
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 951
944 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 952 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
945 { 953 {
946 if (m_webFrame->client()) { 954 if (m_webFrame->client()) {
947 m_webFrame->client()->suddenTerminationDisablerChanged( 955 m_webFrame->client()->suddenTerminationDisablerChanged(
948 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 956 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
949 } 957 }
950 } 958 }
951 959
952 } // namespace blink 960 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/RemoteBridgeFrameOwner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698