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

Unified Diff: third_party/WebKit/public/platform/WebDragData.h

Issue 2674953003: Only generate suggested filenames when actually dragging an image. (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: third_party/WebKit/public/platform/WebDragData.h
diff --git a/third_party/WebKit/public/platform/WebDragData.h b/third_party/WebKit/public/platform/WebDragData.h
index 4eb774e08ee8ac3fd5c3bb154f349cecc3dd8576..42ce9bbe638a5afc8a71c97b398e2da4b2787076 100644
--- a/third_party/WebKit/public/platform/WebDragData.h
+++ b/third_party/WebKit/public/platform/WebDragData.h
@@ -62,28 +62,32 @@ class WebDragData {
StorageType storageType;
+ // TODO(dcheng): This should probably be a union.
// Only valid when storageType == StorageTypeString.
WebString stringType;
WebString stringData;
+ // Title associated with a link when stringType == "text/uri-list".
+ WebString title;
+
+ // Only valid when stringType == "text/html". Stores the base URL for the
+ // contained markup.
+ WebURL baseURL;
+
// Only valid when storageType == StorageTypeFilename.
WebString filenameData;
WebString displayNameData;
// Only valid when storageType == StorageTypeBinaryData.
WebData binaryData;
-
- // Title associated with a link when stringType == "text/uri-list".
- // Filename when storageType == StorageTypeBinaryData.
- WebString title;
+ WebURL binaryDataSourceURL;
+ WebString binaryDataFilenameExtension;
+ WebString binaryDataContentDisposition;
// Only valid when storageType == StorageTypeFileSystemFile.
WebURL fileSystemURL;
long long fileSystemFileSize;
WebString fileSystemId;
-
- // Only valid when stringType == "text/html".
- WebURL baseURL;
};
WebDragData() : m_valid(false), m_modifierKeyState(0) {}
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceResponse.cpp ('k') | third_party/WebKit/public/platform/WebURLResponse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698