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

Unified Diff: content/public/common/drop_data.h

Issue 242643004: Support drag and drop of files with filesystem: URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Inline ctor & dtor Created 6 years, 8 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 | « content/common/drag_traits.h ('k') | content/renderer/drop_data_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/drop_data.h
diff --git a/content/public/common/drop_data.h b/content/public/common/drop_data.h
index 91628bf34edc472fbf4b5e7e99529209b4185e90..3bc08df3a8d7475ee1961b69bdd3cc15baf7b154 100644
--- a/content/public/common/drop_data.h
+++ b/content/public/common/drop_data.h
@@ -22,6 +22,14 @@
namespace content {
struct CONTENT_EXPORT DropData {
+ struct FileSystemFileInfo {
+ FileSystemFileInfo() : size(0) {}
+ ~FileSystemFileInfo() {}
+
+ GURL url;
+ int64 size;
+ };
+
DropData();
~DropData();
@@ -47,6 +55,9 @@ struct CONTENT_EXPORT DropData {
// Isolated filesystem ID for the files being dragged on the webview.
base::string16 filesystem_id;
+ // User is dragging files specified with filesystem: URLs.
+ std::vector<FileSystemFileInfo> file_system_files;
+
// User is dragging plain text into the webview.
base::NullableString16 text;
« 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