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 16 matching lines...) Expand all Loading... |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 #include "web/FrameLoaderClientImpl.h" | 33 #include "web/FrameLoaderClientImpl.h" |
34 | 34 |
35 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
36 #include "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
37 #include "bindings/v8/Dictionary.h" | |
38 #include "bindings/v8/ScriptController.h" | 37 #include "bindings/v8/ScriptController.h" |
39 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
40 #include "core/dom/DocumentFullscreen.h" | 39 #include "core/dom/DocumentFullscreen.h" |
41 #include "core/dom/WheelController.h" | 40 #include "core/dom/WheelController.h" |
42 #include "core/events/MessageEvent.h" | 41 #include "core/events/MessageEvent.h" |
43 #include "core/events/MouseEvent.h" | 42 #include "core/events/MouseEvent.h" |
44 #include "core/frame/FrameView.h" | 43 #include "core/frame/FrameView.h" |
45 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
46 #include "core/html/HTMLAppletElement.h" | 45 #include "core/html/HTMLAppletElement.h" |
47 #include "core/loader/DocumentLoader.h" | 46 #include "core/loader/DocumentLoader.h" |
(...skipping 21 matching lines...) Expand all Loading... |
69 #include "public/platform/Platform.h" | 68 #include "public/platform/Platform.h" |
70 #include "public/platform/WebApplicationCacheHost.h" | 69 #include "public/platform/WebApplicationCacheHost.h" |
71 #include "public/platform/WebMimeRegistry.h" | 70 #include "public/platform/WebMimeRegistry.h" |
72 #include "public/platform/WebRTCPeerConnectionHandler.h" | 71 #include "public/platform/WebRTCPeerConnectionHandler.h" |
73 #include "public/platform/WebServiceWorkerProvider.h" | 72 #include "public/platform/WebServiceWorkerProvider.h" |
74 #include "public/platform/WebServiceWorkerProviderClient.h" | 73 #include "public/platform/WebServiceWorkerProviderClient.h" |
75 #include "public/platform/WebSocketStreamHandle.h" | 74 #include "public/platform/WebSocketStreamHandle.h" |
76 #include "public/platform/WebURL.h" | 75 #include "public/platform/WebURL.h" |
77 #include "public/platform/WebURLError.h" | 76 #include "public/platform/WebURLError.h" |
78 #include "public/platform/WebVector.h" | 77 #include "public/platform/WebVector.h" |
79 #include "public/web/WebAutocompleteParams.h" | |
80 #include "public/web/WebAutofillClient.h" | 78 #include "public/web/WebAutofillClient.h" |
81 #include "public/web/WebCachedURLRequest.h" | 79 #include "public/web/WebCachedURLRequest.h" |
82 #include "public/web/WebDOMEvent.h" | 80 #include "public/web/WebDOMEvent.h" |
83 #include "public/web/WebDocument.h" | 81 #include "public/web/WebDocument.h" |
84 #include "public/web/WebFormElement.h" | 82 #include "public/web/WebFormElement.h" |
85 #include "public/web/WebFrameClient.h" | 83 #include "public/web/WebFrameClient.h" |
86 #include "public/web/WebNode.h" | 84 #include "public/web/WebNode.h" |
87 #include "public/web/WebPermissionClient.h" | 85 #include "public/web/WebPermissionClient.h" |
88 #include "public/web/WebPlugin.h" | 86 #include "public/web/WebPlugin.h" |
89 #include "public/web/WebPluginParams.h" | 87 #include "public/web/WebPluginParams.h" |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 void FrameLoaderClientImpl::dispatchWillOpenSocketStream(SocketStreamHandle* han
dle) | 749 void FrameLoaderClientImpl::dispatchWillOpenSocketStream(SocketStreamHandle* han
dle) |
752 { | 750 { |
753 m_webFrame->client()->willOpenSocketStream(SocketStreamHandleInternal::toWeb
SocketStreamHandle(handle)); | 751 m_webFrame->client()->willOpenSocketStream(SocketStreamHandleInternal::toWeb
SocketStreamHandle(handle)); |
754 } | 752 } |
755 | 753 |
756 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(blink::W
ebRTCPeerConnectionHandler* handler) | 754 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(blink::W
ebRTCPeerConnectionHandler* handler) |
757 { | 755 { |
758 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); | 756 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); |
759 } | 757 } |
760 | 758 |
761 void FrameLoaderClientImpl::didRequestAutocomplete(HTMLFormElement* form, const
WebCore::Dictionary& details) | 759 void FrameLoaderClientImpl::didRequestAutocomplete(HTMLFormElement* form) |
762 { | 760 { |
763 if (m_webFrame->viewImpl() && m_webFrame->viewImpl()->autofillClient()) | 761 if (m_webFrame->viewImpl() && m_webFrame->viewImpl()->autofillClient()) |
764 m_webFrame->viewImpl()->autofillClient()->didRequestAutocomplete(WebForm
Element(form), WebAutocompleteParams(details)); | 762 m_webFrame->viewImpl()->autofillClient()->didRequestAutocomplete(WebForm
Element(form)); |
765 } | 763 } |
766 | 764 |
767 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) | 765 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) |
768 { | 766 { |
769 if (m_webFrame->client()) | 767 if (m_webFrame->client()) |
770 return m_webFrame->client()->allowWebGL(m_webFrame, enabledPerSettings); | 768 return m_webFrame->client()->allowWebGL(m_webFrame, enabledPerSettings); |
771 | 769 |
772 return enabledPerSettings; | 770 return enabledPerSettings; |
773 } | 771 } |
774 | 772 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 m_webFrame->client()->didAbortLoading(m_webFrame); | 810 m_webFrame->client()->didAbortLoading(m_webFrame); |
813 } | 811 } |
814 | 812 |
815 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 813 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
816 { | 814 { |
817 if (m_webFrame->client()) | 815 if (m_webFrame->client()) |
818 m_webFrame->client()->didChangeManifest(m_webFrame); | 816 m_webFrame->client()->didChangeManifest(m_webFrame); |
819 } | 817 } |
820 | 818 |
821 } // namespace blink | 819 } // namespace blink |
OLD | NEW |