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

Side by Side Diff: content/renderer/drop_data_builder.cc

Issue 2582463002: Fix webkitGetEntry for non-native files. (Closed)
Patch Set: . Created 4 years 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 | « content/public/common/drop_data.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/drop_data_builder.h" 5 #include "content/renderer/drop_data_builder.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "content/public/common/drop_data.h" 10 #include "content/public/common/drop_data.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 case WebDragData::Item::StorageTypeFilename: 62 case WebDragData::Item::StorageTypeFilename:
63 // TODO(varunjain): This only works on chromeos. Support win/mac/gtk. 63 // TODO(varunjain): This only works on chromeos. Support win/mac/gtk.
64 result.filenames.push_back(ui::FileInfo( 64 result.filenames.push_back(ui::FileInfo(
65 blink::WebStringToFilePath(item.filenameData), 65 blink::WebStringToFilePath(item.filenameData),
66 blink::WebStringToFilePath(item.displayNameData))); 66 blink::WebStringToFilePath(item.displayNameData)));
67 break; 67 break;
68 case WebDragData::Item::StorageTypeFileSystemFile: { 68 case WebDragData::Item::StorageTypeFileSystemFile: {
69 DropData::FileSystemFileInfo info; 69 DropData::FileSystemFileInfo info;
70 info.url = item.fileSystemURL; 70 info.url = item.fileSystemURL;
71 info.size = item.fileSystemFileSize; 71 info.size = item.fileSystemFileSize;
72 info.filesystem_id = item.fileSystemId.ascii();
72 result.file_system_files.push_back(info); 73 result.file_system_files.push_back(info);
73 break; 74 break;
74 } 75 }
75 } 76 }
76 } 77 }
77 78
78 return result; 79 return result;
79 } 80 }
80 81
81 } // namespace content 82 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/drop_data.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698