#include "core/fileapi/FileList.h"
-namespace WebCore {
+namespace blink {
FileList::FileList()
{
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;
}
visitor->trace(m_files);
}
-} // namespace WebCore
+} // namespace blink