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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 } | 741 } |
742 | 742 |
743 bool LocalFrameClientImpl::canCreatePluginWithoutRenderer( | 743 bool LocalFrameClientImpl::canCreatePluginWithoutRenderer( |
744 const String& mimeType) const { | 744 const String& mimeType) const { |
745 if (!m_webFrame->client()) | 745 if (!m_webFrame->client()) |
746 return false; | 746 return false; |
747 | 747 |
748 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); | 748 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); |
749 } | 749 } |
750 | 750 |
751 Widget* LocalFrameClientImpl::createPlugin(HTMLPlugInElement* element, | 751 FrameViewBase* LocalFrameClientImpl::createPlugin( |
752 const KURL& url, | 752 HTMLPlugInElement* element, |
753 const Vector<String>& paramNames, | 753 const KURL& url, |
754 const Vector<String>& paramValues, | 754 const Vector<String>& paramNames, |
755 const String& mimeType, | 755 const Vector<String>& paramValues, |
756 bool loadManually, | 756 const String& mimeType, |
757 DetachedPluginPolicy policy) { | 757 bool loadManually, |
| 758 DetachedPluginPolicy policy) { |
758 if (!m_webFrame->client()) | 759 if (!m_webFrame->client()) |
759 return nullptr; | 760 return nullptr; |
760 | 761 |
761 WebPluginParams params; | 762 WebPluginParams params; |
762 params.url = url; | 763 params.url = url; |
763 params.mimeType = mimeType; | 764 params.mimeType = mimeType; |
764 params.attributeNames = paramNames; | 765 params.attributeNames = paramNames; |
765 params.attributeValues = paramValues; | 766 params.attributeValues = paramValues; |
766 params.loadManually = loadManually; | 767 params.loadManually = loadManually; |
767 | 768 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1021 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
1021 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1022 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
1022 } | 1023 } |
1023 | 1024 |
1024 void LocalFrameClientImpl::setHasReceivedUserGesture() { | 1025 void LocalFrameClientImpl::setHasReceivedUserGesture() { |
1025 if (m_webFrame->client()) | 1026 if (m_webFrame->client()) |
1026 m_webFrame->client()->setHasReceivedUserGesture(); | 1027 m_webFrame->client()->setHasReceivedUserGesture(); |
1027 } | 1028 } |
1028 | 1029 |
1029 } // namespace blink | 1030 } // namespace blink |
OLD | NEW |