OLD | NEW |
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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 ContentSecurityPolicyHeaderType type, | 881 ContentSecurityPolicyHeaderType type, |
882 ContentSecurityPolicyHeaderSource source) { | 882 ContentSecurityPolicyHeaderSource source) { |
883 if (m_webFrame->client()) { | 883 if (m_webFrame->client()) { |
884 m_webFrame->client()->didAddContentSecurityPolicy( | 884 m_webFrame->client()->didAddContentSecurityPolicy( |
885 headerValue, static_cast<WebContentSecurityPolicyType>(type), | 885 headerValue, static_cast<WebContentSecurityPolicyType>(type), |
886 static_cast<WebContentSecurityPolicySource>(source)); | 886 static_cast<WebContentSecurityPolicySource>(source)); |
887 } | 887 } |
888 } | 888 } |
889 | 889 |
890 void FrameLoaderClientImpl::didChangeFrameOwnerProperties( | 890 void FrameLoaderClientImpl::didChangeFrameOwnerProperties( |
891 HTMLFrameOwnerElement* frameElement) { | 891 HTMLFrameElementBase* frameElement) { |
892 if (!m_webFrame->client()) | 892 if (!m_webFrame->client()) |
893 return; | 893 return; |
894 | 894 |
895 m_webFrame->client()->didChangeFrameOwnerProperties( | 895 m_webFrame->client()->didChangeFrameOwnerProperties( |
896 WebFrame::fromFrame(frameElement->contentFrame()), | 896 WebFrame::fromFrame(frameElement->contentFrame()), |
897 WebFrameOwnerProperties( | 897 WebFrameOwnerProperties( |
898 frameElement->browsingContextContainerName(), | 898 frameElement->browsingContextContainerName(), |
899 frameElement->scrollingMode(), frameElement->marginWidth(), | 899 frameElement->scrollingMode(), frameElement->marginWidth(), |
900 frameElement->marginHeight(), frameElement->allowFullscreen(), | 900 frameElement->marginHeight(), frameElement->allowFullscreen(), |
901 frameElement->allowPaymentRequest(), frameElement->isDisplayNone(), | 901 frameElement->allowPaymentRequest(), frameElement->csp(), |
902 frameElement->csp(), frameElement->delegatedPermissions())); | 902 frameElement->delegatedPermissions())); |
903 } | 903 } |
904 | 904 |
905 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler( | 905 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler( |
906 WebRTCPeerConnectionHandler* handler) { | 906 WebRTCPeerConnectionHandler* handler) { |
907 m_webFrame->client()->willStartUsingPeerConnectionHandler(handler); | 907 m_webFrame->client()->willStartUsingPeerConnectionHandler(handler); |
908 } | 908 } |
909 | 909 |
910 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) { | 910 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) { |
911 if (m_webFrame->client()) | 911 if (m_webFrame->client()) |
912 return m_webFrame->client()->allowWebGL(enabledPerSettings); | 912 return m_webFrame->client()->allowWebGL(enabledPerSettings); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1002 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
1003 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1003 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
1004 } | 1004 } |
1005 | 1005 |
1006 void FrameLoaderClientImpl::setHasReceivedUserGesture() { | 1006 void FrameLoaderClientImpl::setHasReceivedUserGesture() { |
1007 if (m_webFrame->client()) | 1007 if (m_webFrame->client()) |
1008 m_webFrame->client()->setHasReceivedUserGesture(); | 1008 m_webFrame->client()->setHasReceivedUserGesture(); |
1009 } | 1009 } |
1010 | 1010 |
1011 } // namespace blink | 1011 } // namespace blink |
OLD | NEW |