#ifndef FileChooser_h
#define FileChooser_h
+#include "platform/FileMetadata.h"
#include "platform/PlatformExport.h"
+#include "platform/weborigin/KURL.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
-namespace WebCore {
+namespace blink {
class FileChooser;
{
}
+ FileChooserFileInfo(const KURL& fileSystemURL, const FileMetadata metadata) : fileSystemURL(fileSystemURL), metadata(metadata)
+ {
+ }
+
+ // Members for native files.
const String path;
const String displayName;
+
+ // Members for file system API files.
+ const KURL fileSystemURL;
+ const FileMetadata metadata;
};
struct FileChooserSettings {
Vector<String> acceptMIMETypes;
Vector<String> acceptFileExtensions;
Vector<String> selectedFiles;
-#if ENABLE(MEDIA_CAPTURE)
bool useMediaCapture;
-#endif
// Returns a combined vector of acceptMIMETypes and acceptFileExtensions.
Vector<String> PLATFORM_EXPORT acceptTypes() const;
FileChooserSettings m_settings;
};
-} // namespace WebCore
+} // namespace blink
#endif // FileChooser_h