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

Side by Side Diff: tools/dom/idl/dart/dart.idl

Issue 16494002: Expand overloaded methods and optional parameters in the html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // This file introduces / supplements and forces Dart declarations. 1 // This file introduces / supplements and forces Dart declarations.
2 2
3 [Supplemental, 3 [Supplemental,
4 Constructor] 4 Constructor]
5 interface AudioContext { 5 interface AudioContext {
6 // TODO(ager): Auto-generate this custom method when the info about retaining 6 // TODO(ager): Auto-generate this custom method when the info about retaining
7 // typed arrays is in the IDL. 7 // typed arrays is in the IDL.
8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe ssCallback, AudioBufferCallback errorCallback); 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe ssCallback, AudioBufferCallback errorCallback);
9 }; 9 };
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Element implements ElementTraversal; 51 Element implements ElementTraversal;
52 52
53 [Callback] 53 [Callback]
54 interface TimeoutHandler { 54 interface TimeoutHandler {
55 void handleEvent(); 55 void handleEvent();
56 }; 56 };
57 57
58 [Supplemental] 58 [Supplemental]
59 interface CanvasRenderingContext2D { 59 interface CanvasRenderingContext2D {
60 [DartName=createImageDataFromImageData] ImageData createImageData(ImageData im agedata); 60 [DartName=createImageDataFromImageData] ImageData createImageData(ImageData im agedata);
61 [DartName=createPatternFromImage] CanvasPattern createPattern(HTMLImageElement image, DOMString repetitionType);
61 }; 62 };
62 63
63 [Supplemental] 64 [Supplemental]
65 interface AudioContext {
66 [DartName=createBufferFromBuffer] AudioBuffer createBuffer(ArrayBuffer buffer, boolean mixToMono);
67 };
68
69 [Supplemental]
70 interface WebGLRenderingContext {
71 [DartName=texImage2DData] void texImage2D(unsigned long target, long level, un signed long internalformat, unsigned long format, unsigned long type, ImageData pixels);
blois 2013/06/18 18:11:21 I'd strongly prefer having a rename table elsewher
72 [DartName=texImage2DImage] void texImage2D(unsigned long target, long level, u nsigned long internalformat, unsigned long format, unsigned long type, HTMLImage Element image);
73 [DartName=texImage2DCanvas] void texImage2D(unsigned long target, long level, unsigned long internalformat, unsigned long format, unsigned long type, HTMLCanv asElement canvas);
74 [DartName=texImage2DVideo] void texImage2D(unsigned long target, long level, u nsigned long internalformat, unsigned long format, unsigned long type, HTMLVideo Element video);
75 [DartName=texSubImage2DData] void texSubImage2D(unsigned long target, long lev el, long xoffset, long yoffset, unsigned long format, unsigned long type, ImageD ata pixels);
76 [DartName=texSubImage2DImage] void texSubImage2D(unsigned long target, long le vel, long xoffset, long yoffset, unsigned long format, unsigned long type, HTMLI mageElement image);
77 [DartName=texSubImage2DCanvas] void texSubImage2D(unsigned long target, long l evel, long xoffset, long yoffset, unsigned long format, unsigned long type, HTML CanvasElement canvas);
78 [DartName=texSubImage2DVideo] void texSubImage2D(unsigned long target, long le vel, long xoffset, long yoffset, unsigned long format, unsigned long type, HTMLV ideoElement video);
79 [DartName=bufferTypedData] void bufferData(unsigned long target, ArrayBufferVi ew data, unsigned long usage);
80 [DartName=bufferEmptyData] void bufferData(unsigned long target, long long siz e, unsigned long usage);
81 [DartName=bufferSubTypedData] void bufferSubData(unsigned long target, long lo ng offset, ArrayBufferView data);
82 };
83
84 [Supplemental]
85 interface URL {
86 [DartName=createObjectUrlFromStream] static DOMString createObjectURL(MediaStr eam stream);
87 [DartName=createObjectUrlFromBlob] static DOMString createObjectURL(Blob blob) ;
88 };
89
90 [Supplemental]
91 interface DataTransferItemList {
92 [DartName=addFile] void add(File file);
93 };
94
95 [Supplemental]
96 interface RTCDataChannel {
97 [DartName=sendByteBuffer] void send(ArrayBuffer data);
98 [DartName=sendTypedData] void send(ArrayBufferView data);
99 [DartName=sendBlob] void send(Blob data);
100 };
101
102 [Supplemental]
103 interface IDBDatabase {
104 [DartName=transactionStringList] IDBTransaction transaction(DOMStringList stor eNames, [Default=NullString] optional DOMString mode);
105 [DartName=transactionList] IDBTransaction transaction(sequence<DOMString> stor eNames, [Default=NullString] optional DOMString mode);
106 };
107
108 [Supplemental]
64 interface Console { 109 interface Console {
65 [Suppressed] void assert(boolean condition); 110 [Suppressed] void assert(boolean condition);
66 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition) ; 111 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition) ;
67 }; 112 };
68 113
69 interface HTMLCanvasElement { 114 interface HTMLCanvasElement {
70 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul lString,Default=Undefined] DOMString type); 115 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul lString,Default=Undefined] DOMString type);
71 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr ing,Default=Undefined] DOMString type, optional float quality); 116 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr ing,Default=Undefined] DOMString type, optional float quality);
72 117
73 [Suppressed] any getContext(DOMString contextId); 118 [Suppressed] any getContext(DOMString contextId);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 [Custom] void reload(); 357 [Custom] void reload();
313 358
314 // URI decomposition attributes 359 // URI decomposition attributes
315 [CustomSetter] attribute DOMString protocol; 360 [CustomSetter] attribute DOMString protocol;
316 [CustomSetter] attribute DOMString host; 361 [CustomSetter] attribute DOMString host;
317 [CustomSetter] attribute DOMString hostname; 362 [CustomSetter] attribute DOMString hostname;
318 [CustomSetter] attribute DOMString port; 363 [CustomSetter] attribute DOMString port;
319 [CustomSetter] attribute DOMString pathname; 364 [CustomSetter] attribute DOMString pathname;
320 [CustomSetter] attribute DOMString search; 365 [CustomSetter] attribute DOMString search;
321 [CustomSetter] attribute DOMString hash; 366 [CustomSetter] attribute DOMString hash;
322 }; 367 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698