OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1349 | 1349 |
1350 RefPtr<Plugin> plugin = webPage->createPlugin(m_frame, pluginElement, parame
ters); | 1350 RefPtr<Plugin> plugin = webPage->createPlugin(m_frame, pluginElement, parame
ters); |
1351 if (!plugin) | 1351 if (!plugin) |
1352 return 0; | 1352 return 0; |
1353 | 1353 |
1354 return PluginView::create(pluginElement, plugin.release(), parameters); | 1354 return PluginView::create(pluginElement, plugin.release(), parameters); |
1355 } | 1355 } |
1356 | 1356 |
1357 void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) | 1357 void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) |
1358 { | 1358 { |
1359 ASSERT(!m_pluginView); | |
1360 ASSERT(pluginWidget); | |
1361 | |
1362 m_pluginView = static_cast<PluginView*>(pluginWidget); | 1359 m_pluginView = static_cast<PluginView*>(pluginWidget); |
1363 } | 1360 } |
1364 | 1361 |
1365 PassRefPtr<Widget> WebFrameLoaderClient::createJavaAppletWidget(const IntSize& p
luginSize, HTMLAppletElement* appletElement, const KURL& baseURL, const Vector<S
tring>& paramNames, const Vector<String>& paramValues) | 1362 PassRefPtr<Widget> WebFrameLoaderClient::createJavaAppletWidget(const IntSize& p
luginSize, HTMLAppletElement* appletElement, const KURL& baseURL, const Vector<S
tring>& paramNames, const Vector<String>& paramValues) |
1366 { | 1363 { |
1367 RefPtr<Widget> plugin = createPlugin(pluginSize, appletElement, KURL(), para
mNames, paramValues, appletElement->serviceType(), false); | 1364 RefPtr<Widget> plugin = createPlugin(pluginSize, appletElement, KURL(), para
mNames, paramValues, appletElement->serviceType(), false); |
1368 if (!plugin) { | 1365 if (!plugin) { |
1369 if (WebPage* webPage = m_frame->page()) | 1366 if (WebPage* webPage = m_frame->page()) |
1370 webPage->send(Messages::WebPageProxy::DidFailToInitializePlugin(appl
etElement->serviceType())); | 1367 webPage->send(Messages::WebPageProxy::DidFailToInitializePlugin(appl
etElement->serviceType())); |
1371 } | 1368 } |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 return webPage->injectedBundleLoaderClient().shouldForceUniversalAccessFromL
ocalURL(webPage, url.string()); | 1621 return webPage->injectedBundleLoaderClient().shouldForceUniversalAccessFromL
ocalURL(webPage, url.string()); |
1625 } | 1622 } |
1626 | 1623 |
1627 PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext
() | 1624 PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext
() |
1628 { | 1625 { |
1629 RefPtr<WebFrameNetworkingContext> context = WebFrameNetworkingContext::creat
e(m_frame); | 1626 RefPtr<WebFrameNetworkingContext> context = WebFrameNetworkingContext::creat
e(m_frame); |
1630 return context.release(); | 1627 return context.release(); |
1631 } | 1628 } |
1632 | 1629 |
1633 } // namespace WebKit | 1630 } // namespace WebKit |
OLD | NEW |