OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Kevin Ollivier <kevino@theolliviers.com> | 2 * Copyright (C) 2007 Kevin Ollivier <kevino@theolliviers.com> |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * All rights reserved. | 5 * All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 #if __WXMSW__ || __WXMAC__ | 897 #if __WXMSW__ || __WXMAC__ |
898 RefPtr<PluginView> pv = PluginView::create(m_frame, size, element, url, para
mNames, paramValues, mimeType, loadManually); | 898 RefPtr<PluginView> pv = PluginView::create(m_frame, size, element, url, para
mNames, paramValues, mimeType, loadManually); |
899 if (pv->status() == PluginStatusLoadedSuccessfully) | 899 if (pv->status() == PluginStatusLoadedSuccessfully) |
900 return pv; | 900 return pv; |
901 #endif | 901 #endif |
902 return 0; | 902 return 0; |
903 } | 903 } |
904 | 904 |
905 void FrameLoaderClientWx::redirectDataToPlugin(Widget* pluginWidget) | 905 void FrameLoaderClientWx::redirectDataToPlugin(Widget* pluginWidget) |
906 { | 906 { |
907 ASSERT(!m_pluginView); | |
908 m_pluginView = static_cast<PluginView*>(pluginWidget); | 907 m_pluginView = static_cast<PluginView*>(pluginWidget); |
909 m_hasSentResponseToPlugin = false; | 908 if (pluginWidget) |
| 909 m_hasSentResponseToPlugin = false; |
910 } | 910 } |
911 | 911 |
912 ResourceError FrameLoaderClientWx::pluginWillHandleLoadError(const ResourceRespo
nse& response) | 912 ResourceError FrameLoaderClientWx::pluginWillHandleLoadError(const ResourceRespo
nse& response) |
913 { | 913 { |
914 notImplemented(); | 914 notImplemented(); |
915 return ResourceError(String(), WebKitErrorCannotLoadPlugIn, response.url().s
tring(), String()); | 915 return ResourceError(String(), WebKitErrorCannotLoadPlugIn, response.url().s
tring(), String()); |
916 } | 916 } |
917 | 917 |
918 PassRefPtr<Widget> FrameLoaderClientWx::createJavaAppletWidget(const IntSize&, H
TMLAppletElement*, const KURL& baseURL, | 918 PassRefPtr<Widget> FrameLoaderClientWx::createJavaAppletWidget(const IntSize&, H
TMLAppletElement*, const KURL& baseURL, |
919 const Vector<String>& paramN
ames, const Vector<String>& paramValues) | 919 const Vector<String>& paramN
ames, const Vector<String>& paramValues) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 // not be used for pages with plugins in them. | 1003 // not be used for pages with plugins in them. |
1004 return false; | 1004 return false; |
1005 } | 1005 } |
1006 | 1006 |
1007 PassRefPtr<FrameNetworkingContext> FrameLoaderClientWx::createNetworkingContext(
) | 1007 PassRefPtr<FrameNetworkingContext> FrameLoaderClientWx::createNetworkingContext(
) |
1008 { | 1008 { |
1009 return FrameNetworkingContextWx::create(m_frame); | 1009 return FrameNetworkingContextWx::create(m_frame); |
1010 } | 1010 } |
1011 | 1011 |
1012 } | 1012 } |
OLD | NEW |