2 * Copyright 2010 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @fileoverview Definitions for objects in the File API, File Writer API, and
18 * File System API. Details of the API are at:
19 * http://www.w3.org/TR/FileAPI/
20 * http://www.w3.org/TR/file-writer-api/
21 * http://www.w3.org/TR/file-system-api/
24 * @author dbk@google.com (David Barrett-Kahn)
29 * @see http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob
30 * @param {Array.<ArrayBufferView|Blob|string>=} opt_blobParts
31 * @param {Object=} opt_options
35 function Blob(opt_blobParts, opt_options) {}
38 * @see http://www.w3.org/TR/FileAPI/#dfn-size
44 * @see http://www.w3.org/TR/FileAPI/#dfn-type
50 * @see http://www.w3.org/TR/FileAPI/#dfn-slice
51 * @param {number} start
52 * @param {number} length
56 Blob.prototype.slice = function(start, length) {};
59 * This replaces Blob.slice in Chrome since WebKit revision 84005.
60 * @see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0222.html
61 * @param {number} start
66 Blob.prototype.webkitSlice = function(start, end) {};
69 * This replaces Blob.slice in Firefox.
70 * @see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0222.html
71 * @param {number} start
76 Blob.prototype.mozSlice = function(start, end) {};
79 * @see http://www.w3.org/TR/file-writer-api/#the-blobbuilder-interface
82 function BlobBuilder() {}
85 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append0
86 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append1
87 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append2
88 * @param {string|Blob|ArrayBuffer} data
89 * @param {string=} endings
91 BlobBuilder.prototype.append = function(data, endings) {};
94 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-getBlob
95 * @param {string=} contentType
98 BlobBuilder.prototype.getBlob = function(contentType) {};
101 * This has replaced BlobBuilder in Chrome since WebKit revision 84008.
102 * @see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0222.html
105 function WebKitBlobBuilder() {}
108 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append0
109 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append1
110 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append2
111 * @param {string|Blob|ArrayBuffer} data
112 * @param {string=} endings
114 WebKitBlobBuilder.prototype.append = function(data, endings) {};
117 * @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-getBlob
118 * @param {string=} contentType
121 WebKitBlobBuilder.prototype.getBlob = function(contentType) {};
125 * @see http://www.w3.org/TR/file-system-api/#the-directoryentry-interface
129 function DirectoryEntry() {};
132 * @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-createReader
133 * @return {!DirectoryReader}
135 DirectoryEntry.prototype.createReader = function() {};
138 * @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-getFile
139 * @param {string} path
140 * @param {Object=} options
141 * @param {function(!FileEntry)=} successCallback
142 * @param {function(!FileError)=} errorCallback
144 DirectoryEntry.prototype.getFile = function(path, options, successCallback,
148 * @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-getDirectory
149 * @param {string} path
150 * @param {Object=} options
151 * @param {function(!DirectoryEntry)=} successCallback
152 * @param {function(!FileError)=} errorCallback
154 DirectoryEntry.prototype.getDirectory = function(path, options, successCallback,
158 * @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-removeRecursively
159 * @param {function()} successCallback
160 * @param {function(!FileError)=} errorCallback
162 DirectoryEntry.prototype.removeRecursively = function(successCallback,
166 * @see http://www.w3.org/TR/file-system-api/#the-directoryreader-interface
169 function DirectoryReader() {};
172 * @see http://www.w3.org/TR/file-system-api/#widl-DirectoryReader-readEntries
173 * @param {function(!Array.<!Entry>)} successCallback
174 * @param {function(!FileError)=} errorCallback
176 DirectoryReader.prototype.readEntries = function(successCallback,
180 * @see http://www.w3.org/TR/file-system-api/#the-entry-interface
186 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-isFile
189 Entry.prototype.isFile;
192 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-isDirectory
195 Entry.prototype.isDirectory;
198 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-name
201 Entry.prototype.name;
204 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-fullPath
207 Entry.prototype.fullPath;
210 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-filesystem
211 * @type {!FileSystem}
213 Entry.prototype.filesystem;
216 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-moveTo
217 * @param {!DirectoryEntry} parent
218 * @param {string=} newName
219 * @param {function(!Entry)=} successCallback
220 * @param {function(!FileError)=} errorCallback
222 Entry.prototype.moveTo = function(parent, newName, successCallback,
226 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-copyTo
227 * @param {!DirectoryEntry} parent
228 * @param {string=} newName
229 * @param {function(!Entry)=} successCallback
230 * @param {function(!FileError)=} errorCallback
232 Entry.prototype.copyTo = function(parent, newName, successCallback,
236 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-toURL
237 * @param {string=} mimeType
240 Entry.prototype.toURL = function(mimeType) {};
243 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-remove
244 * @param {function()} successCallback
245 * @param {function(!FileError)=} errorCallback
247 Entry.prototype.remove = function(successCallback, errorCallback) {};
250 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-getMetadata
251 * @param {function(!Metadata)} successCallback
252 * @param {function(!FileError)=} errorCallback
254 Entry.prototype.getMetadata = function(successCallback, errorCallback) {};
257 * @see http://www.w3.org/TR/file-system-api/#widl-Entry-getParent
258 * @param {function(!Entry)} successCallback
259 * @param {function(!FileError)=} errorCallback
261 Entry.prototype.getParent = function(successCallback, errorCallback) {};
264 * @see http://www.w3.org/TR/FileAPI/#dfn-file
271 * Chrome uses this instead of name.
272 * @deprecated Use name instead.
275 File.prototype.fileName;
278 * Chrome uses this instead of size.
279 * @deprecated Use size instead.
282 File.prototype.fileSize;
285 * @see http://www.w3.org/TR/FileAPI/#dfn-name
291 * @see http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate
294 File.prototype.lastModifiedDate;
297 * @see http://www.w3.org/TR/file-system-api/#the-fileentry-interface
301 function FileEntry() {};
304 * @see http://www.w3.org/TR/file-system-api/#widl-FileEntry-createWriter
305 * @param {function(!FileWriter)} successCallback
306 * @param {function(!FileError)=} errorCallback
308 FileEntry.prototype.createWriter = function(successCallback, errorCallback) {};
311 * @see http://www.w3.org/TR/file-system-api/#widl-FileEntry-file
312 * @param {function(!File)} successCallback
313 * @param {function(!FileError)=} errorCallback
315 FileEntry.prototype.file = function(successCallback, errorCallback) {};
318 * @see http://www.w3.org/TR/FileAPI/#FileErrorInterface
320 * @extends {DOMError}
322 function FileError() {}
325 * @see http://www.w3.org/TR/FileAPI/#dfn-NOT_FOUND_ERR
328 FileError.prototype.NOT_FOUND_ERR = 1;
330 /** @type {number} */
331 FileError.NOT_FOUND_ERR = 1;
334 * @see http://www.w3.org/TR/FileAPI/#dfn-SECURITY_ERR
337 FileError.prototype.SECURITY_ERR = 2;
339 /** @type {number} */
340 FileError.SECURITY_ERR = 2;
343 * @see http://www.w3.org/TR/FileAPI/#dfn-ABORT_ERR
346 FileError.prototype.ABORT_ERR = 3;
348 /** @type {number} */
349 FileError.ABORT_ERR = 3;
352 * @see http://www.w3.org/TR/FileAPI/#dfn-NOT_READABLE_ERR
355 FileError.prototype.NOT_READABLE_ERR = 4;
357 /** @type {number} */
358 FileError.NOT_READABLE_ERR = 4;
361 * @see http://www.w3.org/TR/FileAPI/#dfn-ENCODING_ERR
364 FileError.prototype.ENCODING_ERR = 5;
366 /** @type {number} */
367 FileError.ENCODING_ERR = 5;
370 * @see http://www.w3.org/TR/file-writer-api/#widl-FileError-NO_MODIFICATION_ALLOWED_ERR
373 FileError.prototype.NO_MODIFICATION_ALLOWED_ERR = 6;
375 /** @type {number} */
376 FileError.NO_MODIFICATION_ALLOWED_ERR = 6;
379 * @see http://www.w3.org/TR/file-writer-api/#widl-FileException-INVALID_STATE_ERR
382 FileError.prototype.INVALID_STATE_ERR = 7;
384 /** @type {number} */
385 FileError.INVALID_STATE_ERR = 7;
388 * @see http://www.w3.org/TR/file-writer-api/#widl-FileException-SYNTAX_ERR
391 FileError.prototype.SYNTAX_ERR = 8;
393 /** @type {number} */
394 FileError.SYNTAX_ERR = 8;
397 * @see http://www.w3.org/TR/file-system-api/#widl-FileError-INVALID_MODIFICATION_ERR
400 FileError.prototype.INVALID_MODIFICATION_ERR = 9;
402 /** @type {number} */
403 FileError.INVALID_MODIFICATION_ERR = 9;
406 * @see http://www.w3.org/TR/file-system-api/#widl-FileError-QUOTA_EXCEEDED_ERR
409 FileError.prototype.QUOTA_EXCEEDED_ERR = 10;
411 /** @type {number} */
412 FileError.QUOTA_EXCEEDED_ERR = 10;
415 * @see http://www.w3.org/TR/file-system-api/#widl-FileException-TYPE_MISMATCH_ERR
418 FileError.prototype.TYPE_MISMATCH_ERR = 11;
420 /** @type {number} */
421 FileError.TYPE_MISMATCH_ERR = 11;
424 * @see http://www.w3.org/TR/file-system-api/#widl-FileException-PATH_EXISTS_ERR
427 FileError.prototype.PATH_EXISTS_ERR = 12;
429 /** @type {number} */
430 FileError.PATH_EXISTS_ERR = 12;
433 * @see http://www.w3.org/TR/FileAPI/#dfn-code-exception
435 * @deprecated Use the 'name' or 'message' attributes of DOMError rather than
438 FileError.prototype.code;
441 * @see http://www.w3.org/TR/FileAPI/#dfn-filereader
443 * @implements {EventTarget}
445 function FileReader() {}
448 * @param {boolean=} opt_useCapture
451 FileReader.prototype.addEventListener = function(type, listener, opt_useCapture)
455 * @param {boolean=} opt_useCapture
458 FileReader.prototype.removeEventListener = function(type, listener,
462 FileReader.prototype.dispatchEvent = function(evt) {};
465 * @see http://www.w3.org/TR/FileAPI/#dfn-readAsArrayBuffer
466 * @param {!Blob} blob
468 FileReader.prototype.readAsArrayBuffer = function(blob) {};
471 * @see http://www.w3.org/TR/FileAPI/#dfn-readAsBinaryStringAsync
472 * @param {!Blob} blob
474 FileReader.prototype.readAsBinaryString = function(blob) {};
477 * @see http://www.w3.org/TR/FileAPI/#dfn-readAsText
478 * @param {!Blob} blob
479 * @param {string=} encoding
481 FileReader.prototype.readAsText = function(blob, encoding) {};
484 * @see http://www.w3.org/TR/FileAPI/#dfn-readAsDataURL
485 * @param {!Blob} blob
487 FileReader.prototype.readAsDataURL = function(blob) {};
490 * @see http://www.w3.org/TR/FileAPI/#dfn-abort
492 FileReader.prototype.abort = function() {};
495 * @see http://www.w3.org/TR/FileAPI/#dfn-empty
498 FileReader.prototype.EMPTY = 0;
501 * @see http://www.w3.org/TR/FileAPI/#dfn-loading
504 FileReader.prototype.LOADING = 1;
507 * @see http://www.w3.org/TR/FileAPI/#dfn-done
510 FileReader.prototype.DONE = 2;
513 * @see http://www.w3.org/TR/FileAPI/#dfn-readystate
516 FileReader.prototype.readyState;
519 * @see http://www.w3.org/TR/FileAPI/#dfn-result
520 * @type {string|Blob|ArrayBuffer}
522 FileReader.prototype.result;
525 * @see http://www.w3.org/TR/FileAPI/#dfn-error
528 FileReader.prototype.error;
531 * @see http://www.w3.org/TR/FileAPI/#dfn-onloadstart
532 * @type {?function(!ProgressEvent)}
534 FileReader.prototype.onloadstart;
537 * @see http://www.w3.org/TR/FileAPI/#dfn-onprogress
538 * @type {?function(!ProgressEvent)}
540 FileReader.prototype.onprogress;
543 * @see http://www.w3.org/TR/FileAPI/#dfn-onload
544 * @type {?function(!ProgressEvent)}
546 FileReader.prototype.onload;
549 * @see http://www.w3.org/TR/FileAPI/#dfn-onabort
550 * @type {?function(!ProgressEvent)}
552 FileReader.prototype.onabort;
555 * @see http://www.w3.org/TR/FileAPI/#dfn-onerror
556 * @type {?function(!ProgressEvent)}
558 FileReader.prototype.onerror;
561 * @see http://www.w3.org/TR/FileAPI/#dfn-onloadend
562 * @type {?function(!ProgressEvent)}
564 FileReader.prototype.onloadend;
567 * @see http://www.w3.org/TR/file-writer-api/#idl-def-FileSaver
570 function FileSaver() {};
572 /** @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-abort */
573 FileSaver.prototype.abort = function() {};
576 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-INIT
579 FileSaver.prototype.INIT = 0;
582 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-WRITING
585 FileSaver.prototype.WRITING = 1;
588 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-DONE
591 FileSaver.prototype.DONE = 2;
594 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-readyState
597 FileSaver.prototype.readyState;
600 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-error
603 FileSaver.prototype.error;
606 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onwritestart
607 * @type {?function(!ProgressEvent)}
609 FileSaver.prototype.onwritestart;
612 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onprogress
613 * @type {?function(!ProgressEvent)}
615 FileSaver.prototype.onprogress;
618 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onwrite
619 * @type {?function(!ProgressEvent)}
621 FileSaver.prototype.onwrite;
624 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onabort
625 * @type {?function(!ProgressEvent)}
627 FileSaver.prototype.onabort;
630 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onerror
631 * @type {?function(!ProgressEvent)}
633 FileSaver.prototype.onerror;
636 * @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onwriteend
637 * @type {?function(!ProgressEvent)}
639 FileSaver.prototype.onwriteend;
642 * @see http://www.w3.org/TR/file-system-api/#the-filesystem-interface
645 function FileSystem() {}
648 * @see http://www.w3.org/TR/file-system-api/#widl-FileSystem-name
651 FileSystem.prototype.name;
654 * @see http://www.w3.org/TR/file-system-api/#widl-FileSystem-root
655 * @type {!DirectoryEntry}
657 FileSystem.prototype.root;
660 * @see http://www.w3.org/TR/file-writer-api/#idl-def-FileWriter
662 * @extends {FileSaver}
664 function FileWriter() {}
667 * @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-position
670 FileWriter.prototype.position;
673 * @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-length
676 FileWriter.prototype.length;
679 * @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-write
680 * @param {!Blob} blob
682 FileWriter.prototype.write = function(blob) {};
685 * @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-seek
686 * @param {number} offset
688 FileWriter.prototype.seek = function(offset) {};
691 * @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-truncate
692 * @param {number} size
694 FileWriter.prototype.truncate = function(size) {};
697 * LocalFileSystem interface, implemented by Window and WorkerGlobalScope.
698 * @see http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem
701 function LocalFileSystem() {}
704 * Metadata interface.
705 * @see http://www.w3.org/TR/file-system-api/#idl-def-Metadata
708 function Metadata() {}
711 * @see http://www.w3.org/TR/file-system-api/#widl-Metadata-modificationTime
714 Metadata.prototype.modificationTime;
717 * @see http://www.w3.org/TR/file-system-api/#widl-Metadata-size
720 Metadata.prototype.size;
723 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-TEMPORARY
726 Window.prototype.TEMPORARY = 0;
729 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-PERSISTENT
732 Window.prototype.PERSISTENT = 1;
735 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
736 * @param {number} type
737 * @param {number} size
738 * @param {function(!FileSystem)} successCallback
739 * @param {function(!FileError)=} errorCallback
741 function requestFileSystem(type, size, successCallback, errorCallback) {}
744 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
745 * @param {number} type
746 * @param {number} size
747 * @param {function(!FileSystem)} successCallback
748 * @param {function(!FileError)=} errorCallback
750 Window.prototype.requestFileSystem = function(type, size, successCallback,
754 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
755 * @param {string} uri
756 * @param {function(!Entry)} successCallback
757 * @param {function(!FileError)=} errorCallback
759 function resolveLocalFileSystemURI(uri, successCallback, errorCallback) {}
762 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
763 * @param {string} uri
764 * @param {function(!Entry)} successCallback
765 * @param {function(!FileError)=} errorCallback
767 Window.prototype.resolveLocalFileSystemURI = function(uri, successCallback,
771 * This has replaced requestFileSystem in Chrome since WebKit revision 84224.
772 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
773 * @param {number} type
774 * @param {number} size
775 * @param {function(!FileSystem)} successCallback
776 * @param {function(!FileError)=} errorCallback
778 function webkitRequestFileSystem(type, size, successCallback, errorCallback) {}
781 * This has replaced requestFileSystem in Chrome since WebKit revision 84224.
782 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
783 * @param {number} type
784 * @param {number} size
785 * @param {function(!FileSystem)} successCallback
786 * @param {function(!FileError)=} errorCallback
788 Window.prototype.webkitRequestFileSystem = function(type, size, successCallback,
792 * This has replaced resolveLocalFileSystemURI in Chrome since WebKit revision
794 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
795 * @param {string} uri
796 * @param {function(!Entry)} successCallback
797 * @param {function(!FileError)=} errorCallback
799 function webkitResolveLocalFileSystemURI(uri, successCallback, errorCallback) {}
802 * This has replaced resolveLocalFileSystemURI in Chrome since WebKit revision
804 * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
805 * @param {string} uri
806 * @param {function(!Entry)} successCallback
807 * @param {function(!FileError)=} errorCallback
809 Window.prototype.webkitResolveLocalFileSystemURI = function(uri, successCallback,
812 // WindowBlobURIMethods interface, implemented by Window and WorkerGlobalScope.
813 // There are three APIs for this: the old specced API, the new specced API, and
814 // the webkit-prefixed API.
815 // @see http://www.w3.org/TR/FileAPI/#creating-revoking
818 * @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
819 * @param {!Object} obj
822 function createObjectURL(obj) {};
825 * @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
826 * @param {!Object} obj
829 Window.prototype.createObjectURL = function(obj) {};
832 * @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
833 * @param {string} url
835 function revokeObjectURL(url) {};
838 * @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
839 * @param {string} url
841 Window.prototype.revokeObjectURL = function(url) {};
844 * @see http://www.w3.org/TR/FileAPI/#URL-object
850 * @see http://www.w3.org/TR/FileAPI/#
852 * @param {string} urlString
853 * @param {string=} opt_base
856 function URL(urlString, opt_base) {}
858 /** @type {string} */
859 URL.prototype.protocol;
862 * @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
863 * @param {!File|!Blob|!MediaSource|!MediaStream} obj
866 URL.createObjectURL = function(obj) {};
869 * @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
870 * @param {string} url
872 URL.revokeObjectURL = function(url) {};
875 * This has been replaced by URL in Chrome since WebKit revision 75739.
877 * @param {string} urlString
878 * @param {string=} opt_base
881 function webkitURL(urlString, opt_base) {}
884 window.webkitURL = webkitURL;
887 * @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
888 * @param {!Object} obj
891 webkitURL.createObjectURL = function(obj) {};
894 * @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
895 * @param {string} url
897 webkitURL.revokeObjectURL = function(url) {};
900 * @see https://developers.google.com/chrome/whitepapers/storage
903 function StorageInfo() {}
906 * @see https://developers.google.com/chrome/whitepapers/storage
909 StorageInfo.prototype.TEMPORARY = 0;
912 * @see https://developers.google.com/chrome/whitepapers/storage
915 StorageInfo.prototype.PERSISTENT = 1;
918 * @see https://developers.google.com/chrome/whitepapers/storage#requestQuota
919 * @param {number} type
920 * @param {number} size
921 * @param {function(number)} successCallback
922 * @param {function(!DOMException)=} errorCallback
924 StorageInfo.prototype.requestQuota = function(type, size, successCallback,
928 * @see https://developers.google.com/chrome/whitepapers/storage#queryUsageAndQuota
929 * @param {number} type
930 * @param {function(number, number)} successCallback
931 * @param {function(!DOMException)=} errorCallback
933 StorageInfo.prototype.queryUsageAndQuota = function(type, successCallback,
937 * @see https://developers.google.com/chrome/whitepapers/storage
938 * @type {!StorageInfo}
940 Window.prototype.webkitStorageInfo;
943 * @see https://dvcs.w3.org/hg/quota/raw-file/tip/Overview.html#storagequota-interface.
946 function StorageQuota() {}
949 * @param {number} size
950 * @param {function(number)=} opt_successCallback
951 * @param {function(!DOMException)=} opt_errorCallback
953 StorageQuota.prototype.requestQuota = function(size, opt_successCallback,
954 opt_errorCallback) {};
957 * @param {function(number, number)} successCallback
958 * @param {function(!DOMException)=} opt_errorCallback
960 StorageQuota.prototype.queryUsageAndQuota = function(successCallback,
961 opt_errorCallback) {};