OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2006 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2006, 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2011 Apple Inc. All rights reserved. |
4 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) | 4 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) |
5 * Copyright (C) 2008 Collabora Ltd. All rights reserved. | 5 * Copyright (C) 2008 Collabora Ltd. All rights reserved. |
6 * Coypright (C) 2008 Holger Hans Peter Freyther | 6 * Coypright (C) 2008 Holger Hans Peter Freyther |
7 * Coypright (C) 2009, 2010 Girish Ramakrishnan <girish@forwardbias.in> | 7 * Coypright (C) 2009, 2010 Girish Ramakrishnan <girish@forwardbias.in> |
8 * | 8 * |
9 * All rights reserved. | 9 * All rights reserved. |
10 * | 10 * |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1626 params, values, mimeType, loadManually); | 1626 params, values, mimeType, loadManually); |
1627 return pluginView; | 1627 return pluginView; |
1628 } | 1628 } |
1629 #endif // ENABLE(NETSCAPE_PLUGIN_API) | 1629 #endif // ENABLE(NETSCAPE_PLUGIN_API) |
1630 | 1630 |
1631 return 0; | 1631 return 0; |
1632 } | 1632 } |
1633 | 1633 |
1634 void FrameLoaderClientQt::redirectDataToPlugin(Widget* pluginWidget) | 1634 void FrameLoaderClientQt::redirectDataToPlugin(Widget* pluginWidget) |
1635 { | 1635 { |
1636 ASSERT(!m_pluginView); | |
1637 m_pluginView = static_cast<PluginView*>(pluginWidget); | 1636 m_pluginView = static_cast<PluginView*>(pluginWidget); |
1638 m_hasSentResponseToPlugin = false; | 1637 if (pluginWidget) |
| 1638 m_hasSentResponseToPlugin = false; |
1639 } | 1639 } |
1640 | 1640 |
1641 PassRefPtr<Widget> FrameLoaderClientQt::createJavaAppletWidget(const IntSize& pl
uginSize, HTMLAppletElement* element, const KURL& url, | 1641 PassRefPtr<Widget> FrameLoaderClientQt::createJavaAppletWidget(const IntSize& pl
uginSize, HTMLAppletElement* element, const KURL& url, |
1642 const Vector<String>& paramN
ames, const Vector<String>& paramValues) | 1642 const Vector<String>& paramN
ames, const Vector<String>& paramValues) |
1643 { | 1643 { |
1644 return createPlugin(pluginSize, element, url, paramNames, paramValues, "appl
ication/x-java-applet", true); | 1644 return createPlugin(pluginSize, element, url, paramNames, paramValues, "appl
ication/x-java-applet", true); |
1645 } | 1645 } |
1646 | 1646 |
1647 String FrameLoaderClientQt::overrideMediaType() const | 1647 String FrameLoaderClientQt::overrideMediaType() const |
1648 { | 1648 { |
(...skipping 29 matching lines...) Expand all Loading... |
1678 | 1678 |
1679 QWebPage* webPage = m_webFrame->page(); | 1679 QWebPage* webPage = m_webFrame->page(); |
1680 if (wasOriginatingLoad && webPage) | 1680 if (wasOriginatingLoad && webPage) |
1681 emit webPage->loadFinished(ok); | 1681 emit webPage->loadFinished(ok); |
1682 emit m_webFrame->loadFinished(ok); | 1682 emit m_webFrame->loadFinished(ok); |
1683 } | 1683 } |
1684 | 1684 |
1685 } | 1685 } |
1686 | 1686 |
1687 #include "moc_FrameLoaderClientQt.cpp" | 1687 #include "moc_FrameLoaderClientQt.cpp" |
OLD | NEW |