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

Unified Diff: Source/core/fileapi/FileList.cpp

Issue 235373005: Handle JS-created files in <input type="file">. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed visibility bug. Created 6 years, 5 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/fileapi/FileList.h ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileList.cpp
diff --git a/Source/core/fileapi/FileList.cpp b/Source/core/fileapi/FileList.cpp
index 1885374fbcbf2ba1483dbad585ce7704094fbb4b..8de60544b0f317ccb2ebddf8dcf36a28beb78090 100644
--- a/Source/core/fileapi/FileList.cpp
+++ b/Source/core/fileapi/FileList.cpp
@@ -41,11 +41,13 @@ File* FileList::item(unsigned index) const
return m_files[index].get();
}
-Vector<String> FileList::paths() const
+Vector<String> FileList::pathsForUserVisibleFiles() const
{
Vector<String> paths;
- for (unsigned i = 0; i < m_files.size(); ++i)
- paths.append(m_files[i]->path());
+ for (unsigned i = 0; i < m_files.size(); ++i) {
+ if (m_files[i]->userVisibility() == File::IsUserVisible)
+ paths.append(m_files[i]->path());
+ }
return paths;
}
« no previous file with comments | « Source/core/fileapi/FileList.h ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698