| 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 // A struct for managing data being dropped on a WebContents. This represents | 5 // A struct for managing data being dropped on a WebContents. This represents |
| 6 // a union of all the types of data that can be dropped in a platform neutral | 6 // a union of all the types of data that can be dropped in a platform neutral |
| 7 // way. | 7 // way. |
| 8 | 8 |
| 9 #ifndef CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 9 #ifndef CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
| 10 #define CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 10 #define CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 struct CONTENT_EXPORT DropData { | 27 struct CONTENT_EXPORT DropData { |
| 28 struct FileSystemFileInfo { | 28 struct FileSystemFileInfo { |
| 29 FileSystemFileInfo() : size(0) {} | 29 FileSystemFileInfo() : size(0) {} |
| 30 ~FileSystemFileInfo() {} | 30 ~FileSystemFileInfo() {} |
| 31 | 31 |
| 32 GURL url; | 32 GURL url; |
| 33 int64_t size; | 33 int64_t size; |
| 34 std::string filesystem_id; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 enum class Kind { | 37 enum class Kind { |
| 37 STRING = 0, | 38 STRING = 0, |
| 38 FILENAME, | 39 FILENAME, |
| 39 FILESYSTEMFILE, | 40 FILESYSTEMFILE, |
| 40 LAST = FILESYSTEMFILE | 41 LAST = FILESYSTEMFILE |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 struct Metadata { | 44 struct Metadata { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // The key-modifiers present for this update, included here so BrowserPlugin | 107 // The key-modifiers present for this update, included here so BrowserPlugin |
| 107 // can forward them to the guest renderer. | 108 // can forward them to the guest renderer. |
| 108 // TODO(wjmaclean): This can probably be removed when BrowserPlugin goes | 109 // TODO(wjmaclean): This can probably be removed when BrowserPlugin goes |
| 109 // away, https://crbug.com/533069. | 110 // away, https://crbug.com/533069. |
| 110 int key_modifiers; | 111 int key_modifiers; |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace content | 114 } // namespace content |
| 114 | 115 |
| 115 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 116 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
| OLD | NEW |