Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / fileapi / FileList.cpp
index 22d612b..8de6054 100644 (file)
@@ -27,7 +27,7 @@
 #include "core/fileapi/FileList.h"
 
 
-namespace WebCore {
+namespace blink {
 
 FileList::FileList()
 {
@@ -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;
 }
@@ -55,4 +57,4 @@ void FileList::trace(Visitor* visitor)
     visitor->trace(m_files);
 }
 
-} // namespace WebCore
+} // namespace blink