Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: core/fileapi/FileReader.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fileapi/FileError.idl ('k') | core/fileapi/FileReaderSync.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 15 matching lines...) Expand all
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 // https://w3c.github.io/FileAPI/#APIASynch 32 // https://w3c.github.io/FileAPI/#APIASynch
33 33
34 [ 34 [
35 GarbageCollected, 35 GarbageCollected,
36 ActiveDOMObject, 36 DependentLifetime,
37 Constructor, 37 Constructor,
38 ConstructorCallWith=ExecutionContext, 38 ConstructorCallWith=ExecutionContext,
39 Exposed=(Window,Worker), 39 Exposed=(Window,Worker),
40 TypeChecking=Interface
41 ] interface FileReader : EventTarget { 40 ] interface FileReader : EventTarget {
42 // async read methods 41 // async read methods
43 [RaisesException] void readAsArrayBuffer(Blob blob); 42 [RaisesException] void readAsArrayBuffer(Blob blob);
44 // TODO(philipj): readAsBinaryString() was removed from the spec in 2012: 43 // TODO(philipj): readAsBinaryString() was removed from the spec in 2012:
45 // https://github.com/w3c/FileAPI/commit/8cce54559dc27bf8b8244f3f0ca9fb3e4d9 6efdb 44 // https://github.com/w3c/FileAPI/commit/8cce54559dc27bf8b8244f3f0ca9fb3e4d9 6efdb
46 [RaisesException, Measure] void readAsBinaryString(Blob blob); 45 [RaisesException, Measure] void readAsBinaryString(Blob blob);
47 [RaisesException] void readAsText(Blob blob, optional DOMString label); 46 [RaisesException] void readAsText(Blob blob, optional DOMString label);
48 [RaisesException] void readAsDataURL(Blob blob); 47 [RaisesException] void readAsDataURL(Blob blob);
49 48
50 void abort(); 49 void abort();
51 50
52 // states 51 // states
53 const unsigned short EMPTY = 0; 52 const unsigned short EMPTY = 0;
54 const unsigned short LOADING = 1; 53 const unsigned short LOADING = 1;
55 const unsigned short DONE = 2; 54 const unsigned short DONE = 2;
56 55
57 readonly attribute unsigned short readyState; 56 [ImplementedAs=getReadyState] readonly attribute unsigned short readyState;
58 57
59 // File or Blob data 58 // File or Blob data
60 readonly attribute (DOMString or ArrayBuffer)? result; 59 readonly attribute (DOMString or ArrayBuffer)? result;
61 60
62 // TODO(philipj): error should be DOMError. crbug.com/496901 61 // TODO(philipj): error should be DOMError. crbug.com/496901
63 [Measure] readonly attribute FileError? error; 62 [Measure] readonly attribute FileError? error;
64 63
65 // event handler attributes 64 // event handler attributes
66 attribute EventHandler onloadstart; 65 attribute EventHandler onloadstart;
67 attribute EventHandler onprogress; 66 attribute EventHandler onprogress;
68 attribute EventHandler onload; 67 attribute EventHandler onload;
69 attribute EventHandler onabort; 68 attribute EventHandler onabort;
70 attribute EventHandler onerror; 69 attribute EventHandler onerror;
71 attribute EventHandler onloadend; 70 attribute EventHandler onloadend;
72 }; 71 };
OLDNEW
« no previous file with comments | « core/fileapi/FileError.idl ('k') | core/fileapi/FileReaderSync.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698