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

Side by Side Diff: Source/WebKit/win/WebFrame.cpp

Issue 7521007: Merge 91797 - Add support for download='filename' attribute in anchors. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « Source/WebKit/win/WebFrame.h ('k') | Source/WebKit/wince/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009. 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 void WebFrame::dispatchDidFailLoad(const ResourceError& error) 1900 void WebFrame::dispatchDidFailLoad(const ResourceError& error)
1901 { 1901 {
1902 COMPtr<IWebFrameLoadDelegate> frameLoadDelegate; 1902 COMPtr<IWebFrameLoadDelegate> frameLoadDelegate;
1903 if (SUCCEEDED(d->webView->frameLoadDelegate(&frameLoadDelegate))) { 1903 if (SUCCEEDED(d->webView->frameLoadDelegate(&frameLoadDelegate))) {
1904 COMPtr<IWebError> webError; 1904 COMPtr<IWebError> webError;
1905 webError.adoptRef(WebError::createInstance(error)); 1905 webError.adoptRef(WebError::createInstance(error));
1906 frameLoadDelegate->didFailLoadWithError(d->webView, webError.get(), this ); 1906 frameLoadDelegate->didFailLoadWithError(d->webView, webError.get(), this );
1907 } 1907 }
1908 } 1908 }
1909 1909
1910 void WebFrame::startDownload(const ResourceRequest& request) 1910 void WebFrame::startDownload(const ResourceRequest& request, const String& /* su ggestedName */)
1911 { 1911 {
1912 d->webView->downloadURL(request.url()); 1912 d->webView->downloadURL(request.url());
1913 } 1913 }
1914 1914
1915 PassRefPtr<Widget> WebFrame::createJavaAppletWidget(const IntSize& pluginSize, H TMLAppletElement* element, const KURL& /*baseURL*/, const Vector<String>& paramN ames, const Vector<String>& paramValues) 1915 PassRefPtr<Widget> WebFrame::createJavaAppletWidget(const IntSize& pluginSize, H TMLAppletElement* element, const KURL& /*baseURL*/, const Vector<String>& paramN ames, const Vector<String>& paramValues)
1916 { 1916 {
1917 RefPtr<PluginView> pluginView = PluginView::create(core(this), pluginSize, e lement, KURL(), paramNames, paramValues, "application/x-java-applet", false); 1917 RefPtr<PluginView> pluginView = PluginView::create(core(this), pluginSize, e lement, KURL(), paramNames, paramValues, "application/x-java-applet", false);
1918 1918
1919 // Check if the plugin can be loaded successfully 1919 // Check if the plugin can be loaded successfully
1920 if (pluginView->plugin() && pluginView->plugin()->load()) 1920 if (pluginView->plugin() && pluginView->plugin()->load())
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 if (!coreFrame || !coreFrame->view()) 2668 if (!coreFrame || !coreFrame->view())
2669 return; 2669 return;
2670 2670
2671 coreFrame->view()->updateBackgroundRecursively(backgroundColor, webView()->t ransparent()); 2671 coreFrame->view()->updateBackgroundRecursively(backgroundColor, webView()->t ransparent());
2672 } 2672 }
2673 2673
2674 PassRefPtr<FrameNetworkingContext> WebFrame::createNetworkingContext() 2674 PassRefPtr<FrameNetworkingContext> WebFrame::createNetworkingContext()
2675 { 2675 {
2676 return WebFrameNetworkingContext::create(core(this), userAgent(url())); 2676 return WebFrameNetworkingContext::create(core(this), userAgent(url()));
2677 } 2677 }
OLDNEW
« no previous file with comments | « Source/WebKit/win/WebFrame.h ('k') | Source/WebKit/wince/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698