Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp

Issue 10905105: Merge 125500 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 return pluginView; 878 return pluginView;
879 879
880 dispatchDidFailToStartPlugin(pluginView.get()); 880 dispatchDidFailToStartPlugin(pluginView.get());
881 881
882 return 0; 882 return 0;
883 } 883 }
884 884
885 void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) 885 void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget)
886 { 886 {
887 // Ideally, this function shouldn't be necessary, see <rdar://problem/485288 9> 887 // Ideally, this function shouldn't be necessary, see <rdar://problem/485288 9>
888 888 if (!pluginWidget || pluginWidget->isPluginView())
889 if (pluginWidget->isPluginView())
890 m_manualLoader = static_cast<PluginView*>(pluginWidget); 889 m_manualLoader = static_cast<PluginView*>(pluginWidget);
891 else 890 else
892 m_manualLoader = static_cast<EmbeddedWidget*>(pluginWidget); 891 m_manualLoader = static_cast<EmbeddedWidget*>(pluginWidget);
893 } 892 }
894 893
895 WebHistory* WebFrameLoaderClient::webHistory() const 894 WebHistory* WebFrameLoaderClient::webHistory() const
896 { 895 {
897 if (m_webFrame != m_webFrame->webView()->topLevelFrame()) 896 if (m_webFrame != m_webFrame->webView()->topLevelFrame())
898 return 0; 897 return 0;
899 898
900 return WebHistory::sharedHistory(); 899 return WebHistory::sharedHistory();
901 } 900 }
902 901
903 bool WebFrameLoaderClient::shouldUsePluginDocument(const String& mimeType) const 902 bool WebFrameLoaderClient::shouldUsePluginDocument(const String& mimeType) const
904 { 903 {
905 WebView* webView = m_webFrame->webView(); 904 WebView* webView = m_webFrame->webView();
906 if (!webView) 905 if (!webView)
907 return false; 906 return false;
908 907
909 return webView->shouldUseEmbeddedView(mimeType); 908 return webView->shouldUseEmbeddedView(mimeType);
910 } 909 }
OLDNEW
« no previous file with comments | « Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp ('k') | Source/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698