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

Unified Diff: public/web/WebFileChooserCompletion.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/web/WebFileChooserCompletionImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFileChooserCompletion.h
diff --git a/public/web/WebFileChooserCompletion.h b/public/web/WebFileChooserCompletion.h
index 19c0f268c64947c86a3b2649c52b5635bfa90995..84d1e5db4856d5114980ec5764457234ed2fc0e2 100644
--- a/public/web/WebFileChooserCompletion.h
+++ b/public/web/WebFileChooserCompletion.h
@@ -32,6 +32,7 @@
#define WebFileChooserCompletion_h
#include "../platform/WebString.h"
+#include "../platform/WebURL.h"
namespace blink {
@@ -47,6 +48,22 @@ public:
// The display name of the file that is to be exposed as File.name in
// the DOM layer. If it is empty the base part of the |path| is used.
WebString displayName;
+
+ // File system URL.
+ WebURL fileSystemURL;
+
+ // Metadata of non-native file.
+ // 0 is Unix epoch, unit is sec.
+ double modificationTime;
+ long long length;
+ bool isDirectory;
+
+ SelectedFileInfo()
+ : modificationTime(0)
+ , length(0)
+ , isDirectory(false)
+ {
+ }
};
// Called with zero or more file names. Zero-lengthed vector means that
« no previous file with comments | « Source/web/WebFileChooserCompletionImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698