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

Unified Diff: webkit/glue/clipboard_conversion.cc

Issue 19417: Generate a file name when dragging an image to the desktop (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/webdropdata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/clipboard_conversion.cc
===================================================================
--- webkit/glue/clipboard_conversion.cc (revision 8847)
+++ webkit/glue/clipboard_conversion.cc (working copy)
@@ -24,6 +24,8 @@
drop_data.url = KURLToGURL(data_object->url);
drop_data.url_title = StringToStdWString(data_object->urlTitle);
+ drop_data.file_extension = StringToStdWString(data_object->fileExtension);
+
for (size_t i = 0; i < data_object->filenames.size(); ++i) {
drop_data.filenames.push_back(StringToStdWString(
data_object->filenames[i]));
@@ -51,6 +53,8 @@
data_object->url = GURLToKURL(drop_data.url);
data_object->urlTitle = StdWStringToString(drop_data.url_title);
+ data_object->fileExtension = StdWStringToString(drop_data.file_extension);
+
for (size_t i = 0; i < drop_data.filenames.size(); ++i) {
data_object->filenames.append(StdWStringToString(drop_data.filenames[i]));
}
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/webdropdata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698