| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 #include "bindings/core/v8/ScriptController.h" | 35 #include "bindings/core/v8/ScriptController.h" |
| 36 #include "core/HTMLNames.h" | 36 #include "core/HTMLNames.h" |
| 37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
| 38 #include "core/dom/Fullscreen.h" | 38 #include "core/dom/Fullscreen.h" |
| 39 #include "core/events/MessageEvent.h" | 39 #include "core/events/MessageEvent.h" |
| 40 #include "core/events/MouseEvent.h" | 40 #include "core/events/MouseEvent.h" |
| 41 #include "core/events/UIEventWithKeyState.h" | 41 #include "core/events/UIEventWithKeyState.h" |
| 42 #include "core/frame/FrameView.h" | 42 #include "core/frame/FrameView.h" |
| 43 #include "core/frame/Settings.h" | 43 #include "core/frame/Settings.h" |
| 44 #include "core/html/HTMLFrameElementBase.h" |
| 44 #include "core/html/HTMLMediaElement.h" | 45 #include "core/html/HTMLMediaElement.h" |
| 45 #include "core/html/HTMLPlugInElement.h" | 46 #include "core/html/HTMLPlugInElement.h" |
| 46 #include "core/input/EventHandler.h" | 47 #include "core/input/EventHandler.h" |
| 47 #include "core/layout/HitTestResult.h" | 48 #include "core/layout/HitTestResult.h" |
| 48 #include "core/loader/DocumentLoader.h" | 49 #include "core/loader/DocumentLoader.h" |
| 49 #include "core/loader/FrameLoadRequest.h" | 50 #include "core/loader/FrameLoadRequest.h" |
| 50 #include "core/loader/FrameLoader.h" | 51 #include "core/loader/FrameLoader.h" |
| 51 #include "core/loader/HistoryItem.h" | 52 #include "core/loader/HistoryItem.h" |
| 52 #include "core/page/Page.h" | 53 #include "core/page/Page.h" |
| 53 #include "core/page/WindowFeatures.h" | 54 #include "core/page/WindowFeatures.h" |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 m_webFrame->client()->didChangeName(m_webFrame, name); | 853 m_webFrame->client()->didChangeName(m_webFrame, name); |
| 853 } | 854 } |
| 854 | 855 |
| 855 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
s flags) | 856 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
s flags) |
| 856 { | 857 { |
| 857 if (!m_webFrame->client()) | 858 if (!m_webFrame->client()) |
| 858 return; | 859 return; |
| 859 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame),
static_cast<WebSandboxFlags>(flags)); | 860 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame),
static_cast<WebSandboxFlags>(flags)); |
| 860 } | 861 } |
| 861 | 862 |
| 863 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase*
frameElement) |
| 864 { |
| 865 if (!m_webFrame->client()) |
| 866 return; |
| 867 |
| 868 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(fram
eElement->contentFrame()), WebFrameOwnerProperties(static_cast<WebFrameOwnerProp
erties::ScrollingMode>(frameElement->scrollingMode()), frameElement->marginWidth
(), frameElement->marginHeight())); |
| 869 } |
| 870 |
| 862 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) | 871 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) |
| 863 { | 872 { |
| 864 m_webFrame->client()->willOpenWebSocket(handle); | 873 m_webFrame->client()->willOpenWebSocket(handle); |
| 865 } | 874 } |
| 866 | 875 |
| 867 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) | 876 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) |
| 868 { | 877 { |
| 869 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); | 878 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); |
| 870 } | 879 } |
| 871 | 880 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 | 965 |
| 957 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 966 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 958 { | 967 { |
| 959 if (m_webFrame->client()) { | 968 if (m_webFrame->client()) { |
| 960 m_webFrame->client()->suddenTerminationDisablerChanged( | 969 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 961 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 970 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 962 } | 971 } |
| 963 } | 972 } |
| 964 | 973 |
| 965 } // namespace blink | 974 } // namespace blink |
| OLD | NEW |