Index: core/fileapi/File.idl |
diff --git a/core/fileapi/File.idl b/core/fileapi/File.idl |
index c338fa2948e5d1b8cf2edd1a60af626a647a46bc..666b073d82c8315f63bdbbca46fdff93aebeb7be 100644 |
--- a/core/fileapi/File.idl |
+++ b/core/fileapi/File.idl |
@@ -23,12 +23,19 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://w3c.github.io/FileAPI/#file |
+ |
[ |
- CustomConstructor(sequence<any> blobParts, DOMString fileName, optional BlobPropertyBag options), |
+ // TODO(jsbell): fileName parameter has [EnsureUTF16] in the spec; use |
+ // USVString? https://github.com/w3c/FileAPI/issues/9 |
+ Constructor(sequence<(Blob or DOMString or ArrayBufferView or ArrayBuffer)> fileBits, DOMString fileName, optional FilePropertyBag options), |
+ RaisesException=Constructor, |
Exposed=(Window,Worker), |
] interface File : Blob { |
readonly attribute DOMString name; |
- [MeasureAs=FileGetLastModifiedDate] readonly attribute Date lastModifiedDate; |
readonly attribute long long lastModified; |
+ |
+ // Non-standard APIs |
+ [MeasureAs=FileGetLastModifiedDate] readonly attribute Date lastModifiedDate; |
[MeasureAs=PrefixedFileRelativePath] readonly attribute DOMString webkitRelativePath; |
}; |