summaryrefslogtreecommitdiff
path: root/Source/WebCore/fileapi/File.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/fileapi/File.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/fileapi/File.idl')
-rw-r--r--Source/WebCore/fileapi/File.idl18
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/WebCore/fileapi/File.idl b/Source/WebCore/fileapi/File.idl
index 1d9dc51fc..372bd8155 100644
--- a/Source/WebCore/fileapi/File.idl
+++ b/Source/WebCore/fileapi/File.idl
@@ -23,15 +23,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+typedef (ArrayBufferView or ArrayBuffer) BufferSource;
+typedef (BufferSource or Blob or USVString) BlobPart;
+
+// FIXME: This should be exposed on Workers as well.
[
- JSGenerateToNativeObject,
+ Constructor(sequence<BlobPart> fileBits, USVString fileName, optional FilePropertyBag options),
+ ExportMacro=WEBCORE_EXPORT,
+ Exposed=(Window),
JSGenerateToJSObject,
- JSNoStaticTables
+ JSGenerateToNativeObject,
] interface File : Blob {
readonly attribute DOMString name;
-#if !defined(LANGUAGE_GOBJECT) || !LANGUAGE_GOBJECT
- readonly attribute Date lastModifiedDate;
-#endif
- [Conditional=DIRECTORY_UPLOAD] readonly attribute DOMString webkitRelativePath;
+ readonly attribute long long lastModified;
};
+dictionary FilePropertyBag : BlobPropertyBag {
+ long long lastModified;
+};