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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "public/platform/WebVector.h" | 78 #include "public/platform/WebVector.h" |
79 #include "public/web/WebAutofillClient.h" | 79 #include "public/web/WebAutofillClient.h" |
80 #include "public/web/WebContentSettingsClient.h" | 80 #include "public/web/WebContentSettingsClient.h" |
81 #include "public/web/WebDOMEvent.h" | 81 #include "public/web/WebDOMEvent.h" |
82 #include "public/web/WebDocument.h" | 82 #include "public/web/WebDocument.h" |
83 #include "public/web/WebFormElement.h" | 83 #include "public/web/WebFormElement.h" |
84 #include "public/web/WebFrameClient.h" | 84 #include "public/web/WebFrameClient.h" |
85 #include "public/web/WebNode.h" | 85 #include "public/web/WebNode.h" |
86 #include "public/web/WebPlugin.h" | 86 #include "public/web/WebPlugin.h" |
87 #include "public/web/WebPluginParams.h" | 87 #include "public/web/WebPluginParams.h" |
88 #include "public/web/WebPluginPlaceholder.h" | |
89 #include "public/web/WebViewClient.h" | 88 #include "public/web/WebViewClient.h" |
90 #include "web/DevToolsEmulator.h" | 89 #include "web/DevToolsEmulator.h" |
91 #include "web/PluginPlaceholderImpl.h" | |
92 #include "web/SharedWorkerRepositoryClientImpl.h" | 90 #include "web/SharedWorkerRepositoryClientImpl.h" |
93 #include "web/WebDataSourceImpl.h" | 91 #include "web/WebDataSourceImpl.h" |
94 #include "web/WebDevToolsAgentImpl.h" | 92 #include "web/WebDevToolsAgentImpl.h" |
95 #include "web/WebDevToolsFrontendImpl.h" | 93 #include "web/WebDevToolsFrontendImpl.h" |
96 #include "web/WebLocalFrameImpl.h" | 94 #include "web/WebLocalFrameImpl.h" |
97 #include "web/WebPluginContainerImpl.h" | 95 #include "web/WebPluginContainerImpl.h" |
98 #include "web/WebPluginLoadObserver.h" | 96 #include "web/WebPluginLoadObserver.h" |
99 #include "web/WebViewImpl.h" | 97 #include "web/WebViewImpl.h" |
100 #include "wtf/StringExtras.h" | 98 #include "wtf/StringExtras.h" |
101 #include "wtf/text/CString.h" | 99 #include "wtf/text/CString.h" |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 } | 692 } |
695 | 693 |
696 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp
e) const | 694 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp
e) const |
697 { | 695 { |
698 if (!m_webFrame->client()) | 696 if (!m_webFrame->client()) |
699 return false; | 697 return false; |
700 | 698 |
701 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); | 699 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); |
702 } | 700 } |
703 | 701 |
704 PassOwnPtrWillBeRawPtr<PluginPlaceholder> FrameLoaderClientImpl::createPluginPla
ceholder( | |
705 Document& document, | |
706 const KURL& url, | |
707 const Vector<String>& paramNames, | |
708 const Vector<String>& paramValues, | |
709 const String& mimeType, | |
710 bool loadManually) | |
711 { | |
712 if (!m_webFrame->client()) | |
713 return nullptr; | |
714 | |
715 WebPluginParams params; | |
716 params.url = url; | |
717 params.mimeType = mimeType; | |
718 params.attributeNames = paramNames; | |
719 params.attributeValues = paramValues; | |
720 params.loadManually = loadManually; | |
721 | |
722 OwnPtr<WebPluginPlaceholder> webPluginPlaceholder = adoptPtr( | |
723 m_webFrame->client()->createPluginPlaceholder(m_webFrame, params)); | |
724 if (!webPluginPlaceholder) | |
725 return nullptr; | |
726 | |
727 return PluginPlaceholderImpl::create(webPluginPlaceholder.release(), documen
t); | |
728 } | |
729 | |
730 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin( | 702 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin( |
731 HTMLPlugInElement* element, | 703 HTMLPlugInElement* element, |
732 const KURL& url, | 704 const KURL& url, |
733 const Vector<String>& paramNames, | 705 const Vector<String>& paramNames, |
734 const Vector<String>& paramValues, | 706 const Vector<String>& paramValues, |
735 const String& mimeType, | 707 const String& mimeType, |
736 bool loadManually, | 708 bool loadManually, |
737 DetachedPluginPolicy policy) | 709 DetachedPluginPolicy policy) |
738 { | 710 { |
739 if (!m_webFrame->client()) | 711 if (!m_webFrame->client()) |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 | 945 |
974 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 946 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
975 { | 947 { |
976 if (m_webFrame->client()) { | 948 if (m_webFrame->client()) { |
977 m_webFrame->client()->suddenTerminationDisablerChanged( | 949 m_webFrame->client()->suddenTerminationDisablerChanged( |
978 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 950 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
979 } | 951 } |
980 } | 952 } |
981 | 953 |
982 } // namespace blink | 954 } // namespace blink |
OLD | NEW |