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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 m_webFrame->client()->didChangeName(m_webFrame, name); | 836 m_webFrame->client()->didChangeName(m_webFrame, name); |
837 } | 837 } |
838 | 838 |
839 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
s flags) | 839 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
s flags) |
840 { | 840 { |
841 if (!m_webFrame->client()) | 841 if (!m_webFrame->client()) |
842 return; | 842 return; |
843 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame),
static_cast<WebSandboxFlags>(flags)); | 843 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame),
static_cast<WebSandboxFlags>(flags)); |
844 } | 844 } |
845 | 845 |
| 846 void FrameLoaderClientImpl::didChangeScrollingMode(Frame* childFrame, ScrollbarM
ode scrollingMode) |
| 847 { |
| 848 if (!m_webFrame->client()) |
| 849 return; |
| 850 |
| 851 m_webFrame->client()->didChangeScrollingMode(WebFrame::fromFrame(childFrame)
, static_cast<WebFrameOwnerProperties::ScrollingMode>(scrollingMode)); |
| 852 } |
| 853 |
| 854 void FrameLoaderClientImpl::didChangeMarginWidth(Frame* childFrame, int newMargi
nWidth) |
| 855 { |
| 856 if (m_webFrame->client()) |
| 857 m_webFrame->client()->didChangeMarginWidth(WebFrame::fromFrame(childFram
e), newMarginWidth); |
| 858 } |
| 859 |
| 860 void FrameLoaderClientImpl::didChangeMarginHeight(Frame* childFrame, int newMarg
inHeight) |
| 861 { |
| 862 if (m_webFrame->client()) |
| 863 m_webFrame->client()->didChangeMarginHeight(WebFrame::fromFrame(childFra
me), newMarginHeight); |
| 864 } |
| 865 |
| 866 |
846 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) | 867 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) |
847 { | 868 { |
848 m_webFrame->client()->willOpenWebSocket(handle); | 869 m_webFrame->client()->willOpenWebSocket(handle); |
849 } | 870 } |
850 | 871 |
851 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) | 872 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) |
852 { | 873 { |
853 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); | 874 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); |
854 } | 875 } |
855 | 876 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 | 961 |
941 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 962 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
942 { | 963 { |
943 if (m_webFrame->client()) { | 964 if (m_webFrame->client()) { |
944 m_webFrame->client()->suddenTerminationDisablerChanged( | 965 m_webFrame->client()->suddenTerminationDisablerChanged( |
945 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 966 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
946 } | 967 } |
947 } | 968 } |
948 | 969 |
949 } // namespace blink | 970 } // namespace blink |
OLD | NEW |