| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |