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 #include "bindings/core/v8/ScriptController.h" | 34 #include "bindings/core/v8/ScriptController.h" |
35 #include "core/HTMLNames.h" | 35 #include "core/HTMLNames.h" |
36 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
37 #include "core/dom/Fullscreen.h" | 37 #include "core/dom/Fullscreen.h" |
38 #include "core/events/MessageEvent.h" | 38 #include "core/events/MessageEvent.h" |
39 #include "core/events/MouseEvent.h" | 39 #include "core/events/MouseEvent.h" |
40 #include "core/events/UIEventWithKeyState.h" | 40 #include "core/events/UIEventWithKeyState.h" |
41 #include "core/frame/FrameView.h" | 41 #include "core/frame/FrameView.h" |
42 #include "core/frame/Settings.h" | 42 #include "core/frame/Settings.h" |
43 #include "core/html/HTMLFrameElementBase.h" | 43 #include "core/html/HTMLFrameElementBase.h" |
| 44 #include "core/html/HTMLFrameletElement.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 27 matching lines...) Expand all Loading... |
81 #include "public/platform/WebVector.h" | 82 #include "public/platform/WebVector.h" |
82 #include "public/platform/modules/mediasession/WebMediaSession.h" | 83 #include "public/platform/modules/mediasession/WebMediaSession.h" |
83 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 84 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
84 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" | 85 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" |
85 #include "public/web/WebAutofillClient.h" | 86 #include "public/web/WebAutofillClient.h" |
86 #include "public/web/WebContentSettingsClient.h" | 87 #include "public/web/WebContentSettingsClient.h" |
87 #include "public/web/WebDOMEvent.h" | 88 #include "public/web/WebDOMEvent.h" |
88 #include "public/web/WebDocument.h" | 89 #include "public/web/WebDocument.h" |
89 #include "public/web/WebFormElement.h" | 90 #include "public/web/WebFormElement.h" |
90 #include "public/web/WebFrameClient.h" | 91 #include "public/web/WebFrameClient.h" |
| 92 #include "public/web/WebFrameletClient.h" |
91 #include "public/web/WebNode.h" | 93 #include "public/web/WebNode.h" |
92 #include "public/web/WebPlugin.h" | 94 #include "public/web/WebPlugin.h" |
93 #include "public/web/WebPluginParams.h" | 95 #include "public/web/WebPluginParams.h" |
94 #include "public/web/WebViewClient.h" | 96 #include "public/web/WebViewClient.h" |
95 #include "web/DevToolsEmulator.h" | 97 #include "web/DevToolsEmulator.h" |
96 #include "web/SharedWorkerRepositoryClientImpl.h" | 98 #include "web/SharedWorkerRepositoryClientImpl.h" |
97 #include "web/WebDataSourceImpl.h" | 99 #include "web/WebDataSourceImpl.h" |
98 #include "web/WebDevToolsAgentImpl.h" | 100 #include "web/WebDevToolsAgentImpl.h" |
99 #include "web/WebDevToolsFrontendImpl.h" | 101 #include "web/WebDevToolsFrontendImpl.h" |
| 102 #include "web/WebFrameletImpl.h" |
100 #include "web/WebLocalFrameImpl.h" | 103 #include "web/WebLocalFrameImpl.h" |
101 #include "web/WebPluginContainerImpl.h" | 104 #include "web/WebPluginContainerImpl.h" |
102 #include "web/WebViewImpl.h" | 105 #include "web/WebViewImpl.h" |
103 #include "wtf/StringExtras.h" | 106 #include "wtf/StringExtras.h" |
104 #include "wtf/text/CString.h" | 107 #include "wtf/text/CString.h" |
105 #include "wtf/text/WTFString.h" | 108 #include "wtf/text/WTFString.h" |
106 #include <v8.h> | 109 #include <v8.h> |
107 | 110 |
108 namespace blink { | 111 namespace blink { |
109 | 112 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 } | 758 } |
756 | 759 |
757 PassRefPtrWillBeRawPtr<LocalFrame> FrameLoaderClientImpl::createFrame( | 760 PassRefPtrWillBeRawPtr<LocalFrame> FrameLoaderClientImpl::createFrame( |
758 const FrameLoadRequest& request, | 761 const FrameLoadRequest& request, |
759 const AtomicString& name, | 762 const AtomicString& name, |
760 HTMLFrameOwnerElement* ownerElement) | 763 HTMLFrameOwnerElement* ownerElement) |
761 { | 764 { |
762 return m_webFrame->createChildFrame(request, name, ownerElement); | 765 return m_webFrame->createChildFrame(request, name, ownerElement); |
763 } | 766 } |
764 | 767 |
| 768 WebFramelet* FrameLoaderClientImpl::createFramelet(const KURL& url, HTMLFramelet
Element* ownerElement) |
| 769 { |
| 770 WebFramelet* framelet = m_webFrame->createFramelet(url); |
| 771 static_cast<WebFrameletImpl*>(framelet)->initializeCoreFramelet(ownerElement
); |
| 772 return framelet; |
| 773 } |
| 774 |
765 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp
e) const | 775 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp
e) const |
766 { | 776 { |
767 if (!m_webFrame->client()) | 777 if (!m_webFrame->client()) |
768 return false; | 778 return false; |
769 | 779 |
770 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); | 780 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); |
771 } | 781 } |
772 | 782 |
773 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin( | 783 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin( |
774 HTMLPlugInElement* element, | 784 HTMLPlugInElement* element, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 | 1031 |
1022 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 1032 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
1023 { | 1033 { |
1024 if (m_webFrame->client()) { | 1034 if (m_webFrame->client()) { |
1025 m_webFrame->client()->suddenTerminationDisablerChanged( | 1035 m_webFrame->client()->suddenTerminationDisablerChanged( |
1026 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 1036 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
1027 } | 1037 } |
1028 } | 1038 } |
1029 | 1039 |
1030 } // namespace blink | 1040 } // namespace blink |
OLD | NEW |