aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/File.webidl
diff options
context:
space:
mode:
authorZhen Zhang <izgzhen@gmail.com>2016-05-10 20:23:17 +0800
committerZhen Zhang <izgzhen@gmail.com>2016-05-11 22:35:21 +0800
commit87fec3e026484d84b34cfa989dcbc6173bdcc161 (patch)
tree6808ddc2a491a29369696dc2d335ddfee38bfd3e /components/script/dom/webidls/File.webidl
parentf43009333fb919421e584e38af3e8aaa0ff4fd1e (diff)
downloadservo-87fec3e026484d84b34cfa989dcbc6173bdcc161.tar.gz
servo-87fec3e026484d84b34cfa989dcbc6173bdcc161.zip
Implement missing interfaces of File DOM object
Diffstat (limited to 'components/script/dom/webidls/File.webidl')
-rw-r--r--components/script/dom/webidls/File.webidl14
1 files changed, 9 insertions, 5 deletions
diff --git a/components/script/dom/webidls/File.webidl b/components/script/dom/webidls/File.webidl
index 7c0d4be7c29..6e7797c4d5e 100644
--- a/components/script/dom/webidls/File.webidl
+++ b/components/script/dom/webidls/File.webidl
@@ -2,13 +2,17 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-// http://dev.w3.org/2006/webapi/FileAPI/#dfn-file
+// https://w3c.github.io/FileAPI/#file
-// [Constructor(sequence<(Blob or DOMString or ArrayBufferView or ArrayBuffer)> fileBits,
-// [EnsureUTF16] DOMString fileName, optional FilePropertyBag options)]
+[Constructor(sequence<BlobPart> fileBits,
+ DOMString fileName,
+ optional FilePropertyBag options),
+ Exposed=Window/*,Worker*/]
interface File : Blob {
-
readonly attribute DOMString name;
- // readonly attribute Date lastModifiedDate;
+ readonly attribute long long lastModified;
+};
+dictionary FilePropertyBag : BlobPropertyBag {
+ long long lastModified;
};