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

Unified Diff: Source/core/html/forms/FileInputType.h

Issue 720403002: Let input tag filter out non-native files in dropped data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change the behavior so that FileInputType does not accept non-native file drop data. Created 6 years, 1 month 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 | « no previous file | Source/core/html/forms/FileInputType.cpp » ('j') | Source/core/page/DragController.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/FileInputType.h
diff --git a/Source/core/html/forms/FileInputType.h b/Source/core/html/forms/FileInputType.h
index f87a9b3e81251debc875fc4e5d8776664b43f446..b47608f98971e6ec3495baa82db0aa13aa79cba5 100644
--- a/Source/core/html/forms/FileInputType.h
+++ b/Source/core/html/forms/FileInputType.h
@@ -48,6 +48,7 @@ public:
virtual void trace(Visitor*) override;
static Vector<FileChooserFileInfo> filesFromFormControlState(const FormControlState&);
static FileList* createFileList(const Vector<FileChooserFileInfo>& files, bool hasWebkitDirectoryAttr);
+ static void getAcceptableDropFileNames(const DragData&, Vector<String>*);
private:
FileInputType(HTMLInputElement&);
« no previous file with comments | « no previous file | Source/core/html/forms/FileInputType.cpp » ('j') | Source/core/page/DragController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698