| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 } | 764 } |
| 765 | 765 |
| 766 bool LocalFrameClientImpl::canCreatePluginWithoutRenderer( | 766 bool LocalFrameClientImpl::canCreatePluginWithoutRenderer( |
| 767 const String& mimeType) const { | 767 const String& mimeType) const { |
| 768 if (!m_webFrame->client()) | 768 if (!m_webFrame->client()) |
| 769 return false; | 769 return false; |
| 770 | 770 |
| 771 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); | 771 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); |
| 772 } | 772 } |
| 773 | 773 |
| 774 FrameViewBase* LocalFrameClientImpl::createPlugin( | 774 PluginView* LocalFrameClientImpl::createPlugin( |
| 775 HTMLPlugInElement* element, | 775 HTMLPlugInElement* element, |
| 776 const KURL& url, | 776 const KURL& url, |
| 777 const Vector<String>& paramNames, | 777 const Vector<String>& paramNames, |
| 778 const Vector<String>& paramValues, | 778 const Vector<String>& paramValues, |
| 779 const String& mimeType, | 779 const String& mimeType, |
| 780 bool loadManually, | 780 bool loadManually, |
| 781 DetachedPluginPolicy policy) { | 781 DetachedPluginPolicy policy) { |
| 782 if (!m_webFrame->client()) | 782 if (!m_webFrame->client()) |
| 783 return nullptr; | 783 return nullptr; |
| 784 | 784 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1030 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
| 1031 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1031 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
| 1032 } | 1032 } |
| 1033 | 1033 |
| 1034 void LocalFrameClientImpl::setHasReceivedUserGesture() { | 1034 void LocalFrameClientImpl::setHasReceivedUserGesture() { |
| 1035 if (m_webFrame->client()) | 1035 if (m_webFrame->client()) |
| 1036 m_webFrame->client()->setHasReceivedUserGesture(); | 1036 m_webFrame->client()->setHasReceivedUserGesture(); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 } // namespace blink | 1039 } // namespace blink |
| OLD | NEW |