| 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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 m_webFrame->client()->didChangeName(m_webFrame, name); | 866 m_webFrame->client()->didChangeName(m_webFrame, name); |
| 866 } | 867 } |
| 867 | 868 |
| 868 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
s flags) | 869 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
s flags) |
| 869 { | 870 { |
| 870 if (!m_webFrame->client()) | 871 if (!m_webFrame->client()) |
| 871 return; | 872 return; |
| 872 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame),
static_cast<WebSandboxFlags>(flags)); | 873 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame),
static_cast<WebSandboxFlags>(flags)); |
| 873 } | 874 } |
| 874 | 875 |
| 876 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase*
frameElement) |
| 877 { |
| 878 if (!m_webFrame->client()) |
| 879 return; |
| 880 |
| 881 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(fram
eElement->contentFrame()), WebFrameOwnerProperties(frameElement->scrollingMode()
, frameElement->marginWidth(), frameElement->marginHeight())); |
| 882 } |
| 883 |
| 875 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) | 884 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) |
| 876 { | 885 { |
| 877 m_webFrame->client()->willOpenWebSocket(handle); | 886 m_webFrame->client()->willOpenWebSocket(handle); |
| 878 } | 887 } |
| 879 | 888 |
| 880 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) | 889 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) |
| 881 { | 890 { |
| 882 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); | 891 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); |
| 883 } | 892 } |
| 884 | 893 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 | 978 |
| 970 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 979 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 971 { | 980 { |
| 972 if (m_webFrame->client()) { | 981 if (m_webFrame->client()) { |
| 973 m_webFrame->client()->suddenTerminationDisablerChanged( | 982 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 974 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 983 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 975 } | 984 } |
| 976 } | 985 } |
| 977 | 986 |
| 978 } // namespace blink | 987 } // namespace blink |
| OLD | NEW |