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

Unified Diff: Source/platform/FileChooser.h

Issue 640723006: Pass the selected non-native file information from the browser to FileInputType. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed. Created 6 years, 2 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 | « Source/core/html/forms/FileInputTypeTest.cpp ('k') | Source/web/WebFileChooserCompletionImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/FileChooser.h
diff --git a/Source/platform/FileChooser.h b/Source/platform/FileChooser.h
index d1baef025168d5a7769202b11c84261a76b6bacb..14197b011b79cb6177c06afbd187b29390bf4ee5 100644
--- a/Source/platform/FileChooser.h
+++ b/Source/platform/FileChooser.h
@@ -30,7 +30,9 @@
#ifndef FileChooser_h
#define FileChooser_h
+#include "platform/FileMetadata.h"
#include "platform/PlatformExport.h"
+#include "platform/weborigin/KURL.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
@@ -46,8 +48,17 @@ struct FileChooserFileInfo {
{
}
+ FileChooserFileInfo(const KURL& fileSystemURL, const FileMetadata metadata) : fileSystemURL(fileSystemURL), metadata(metadata)
+ {
+ }
+
+ // Members for native files.
const String path;
const String displayName;
+
+ // Members for file system API files.
+ const KURL fileSystemURL;
+ const FileMetadata metadata;
};
struct FileChooserSettings {
« no previous file with comments | « Source/core/html/forms/FileInputTypeTest.cpp ('k') | Source/web/WebFileChooserCompletionImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698