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

Side by Side Diff: content/public/common/drop_data.h

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/common/drag_traits.h ('k') | content/renderer/drop_data_builder.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 // 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
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
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_
OLDNEW
« no previous file with comments | « content/common/drag_traits.h ('k') | content/renderer/drop_data_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698