| OLD | NEW |
| 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(in ArrayBuffer audioData, in AudioBufferCallback
successCallback, in AudioBufferCallback errorCallback); | 8 [Custom] void decodeAudioData(in ArrayBuffer audioData, in AudioBufferCallback
successCallback, in AudioBufferCallback errorCallback); |
| 9 }; | 9 }; |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 [DartName=createImageDataFromImageData] ImageData createImageData(in ImageData
imagedata); | 54 [DartName=createImageDataFromImageData] ImageData createImageData(in ImageData
imagedata); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 [Supplemental] | 57 [Supplemental] |
| 58 interface Console { | 58 interface Console { |
| 59 [Suppressed] void assert(in boolean condition); | 59 [Suppressed] void assert(in boolean condition); |
| 60 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; | 60 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 interface HTMLCanvasElement { | 63 interface HTMLCanvasElement { |
| 64 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Optional=DefaultIsUndefined] in DOMString type); | 64 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] in DOMString type); |
| 65 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr
ing,Optional=DefaultIsUndefined] in DOMString type, [Optional] in float quality)
; | 65 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr
ing,Default=Undefined] in DOMString type, optional float quality); |
| 66 | 66 |
| 67 [Suppressed] any getContext(in DOMString contextId); | 67 [Suppressed] any getContext(in DOMString contextId); |
| 68 [Custom] CanvasRenderingContext getContext(in DOMString contextId, [Optional]
in Dictionary attrs); | 68 [Custom] CanvasRenderingContext getContext(in DOMString contextId, optional Di
ctionary attrs); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 [Supplemental] | 71 [Supplemental] |
| 72 interface HTMLOptionsCollection { | 72 interface HTMLOptionsCollection { |
| 73 [Suppressed] void add([Optional] in HTMLOptionElement element, [Optional] in l
ong before); | 73 [Suppressed] void add(optional HTMLOptionElement element, optional long before
); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 [Supplemental] | 76 [Supplemental] |
| 77 interface HTMLSelectElement { | 77 interface HTMLSelectElement { |
| 78 [Suppressed] void add([Optional=DefaultIsUndefined] in HTMLElement element, [O
ptional=DefaultIsUndefined] in HTMLElement before); | 78 [Suppressed] void add([Default=Undefined] in HTMLElement element, [Default=Und
efined] in HTMLElement before); |
| 79 [Suppressed, Custom] void remove(); | 79 [Suppressed, Custom] void remove(); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 [Supplemental] | 82 [Supplemental] |
| 83 interface ImageData { | 83 interface ImageData { |
| 84 [Custom] readonly attribute int[] data; | 84 [Custom] readonly attribute int[] data; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 [Supplemental] | 87 [Supplemental] |
| 88 interface HTMLMediaElement { | 88 interface HTMLMediaElement { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 105 attribute EventListener onshow; | 105 attribute EventListener onshow; |
| 106 attribute EventListener onstalled; | 106 attribute EventListener onstalled; |
| 107 attribute EventListener onsuspend; | 107 attribute EventListener onsuspend; |
| 108 attribute EventListener ontimeupdate; | 108 attribute EventListener ontimeupdate; |
| 109 attribute EventListener onvolumechange; | 109 attribute EventListener onvolumechange; |
| 110 attribute EventListener onwaiting; | 110 attribute EventListener onwaiting; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 [Supplemental] | 113 [Supplemental] |
| 114 interface WebGLContextEvent { | 114 interface WebGLContextEvent { |
| 115 [Suppressed] void initEvent([Optional] in DOMString eventTypeArg, | 115 [Suppressed] void initEvent(optional DOMString eventTypeArg, |
| 116 [Optional] in boolean canBubbleArg, | 116 optional boolean canBubbleArg, |
| 117 [Optional] in boolean cancelableArg, | 117 optional boolean cancelableArg, |
| 118 [Optional] in DOMString statusMessageArg); | 118 optional DOMString statusMessageArg); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 [Supplemental] | 121 [Supplemental] |
| 122 interface WebGLRenderingContext { | 122 interface WebGLRenderingContext { |
| 123 | 123 |
| 124 //void compressedTexImage2D(in unsigned long target, in long level, in
unsigned long internalformat, in unsigned long width, in unsigned long height,
in long border, in unsigned long imageSize, const void* data); | 124 //void compressedTexImage2D(in unsigned long target, in long level, in
unsigned long internalformat, in unsigned long width, in unsigned long height,
in long border, in unsigned long imageSize, const void* data); |
| 125 //void compressedTexSubImage2D(in unsigned long target, in long level,
in long xoffset, in long yoffset, in unsigned long width, in unsigned long heig
ht, in unsigned long format, in unsigned long imageSize, const void* data); | 125 //void compressedTexSubImage2D(in unsigned long target, in long level,
in long xoffset, in long yoffset, in unsigned long width, in unsigned long heig
ht, in unsigned long format, in unsigned long imageSize, const void* data); |
| 126 | 126 |
| 127 [Custom] any getBufferParameter(in unsigned long target, in unsigned long pnam
e); | 127 [Custom] any getBufferParameter(in unsigned long target, in unsigned long pnam
e); |
| 128 [Suppressed, StrictTypeChecking, Custom] void getBufferParameter(); | 128 [Suppressed, StrictTypeChecking, Custom] void getBufferParameter(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 154 [Suppressed, StrictTypeChecking, Custom] void getTexParameter(); | 154 [Suppressed, StrictTypeChecking, Custom] void getTexParameter(); |
| 155 | 155 |
| 156 [Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation locat
ion); | 156 [Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation locat
ion); |
| 157 [Suppressed, StrictTypeChecking, Custom] void getUniform(); | 157 [Suppressed, StrictTypeChecking, Custom] void getUniform(); |
| 158 | 158 |
| 159 [Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname); | 159 [Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname); |
| 160 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); | 160 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); |
| 161 }; | 161 }; |
| 162 [Supplemental] | 162 [Supplemental] |
| 163 interface CSSStyleDeclaration { | 163 interface CSSStyleDeclaration { |
| 164 void setProperty(in DOMString propertyName, in DOMString value, [Optional] in
DOMString priority); | 164 void setProperty(in DOMString propertyName, in DOMString value, in optional DO
MString priority); |
| 165 [DartName=_getPropertyValue] DOMString getPropertyValue(in DOMString propertyN
ame); | 165 [DartName=_getPropertyValue] DOMString getPropertyValue(in DOMString propertyN
ame); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 [Supplemental, | 168 [Supplemental, |
| 169 Constructor(in long length)] // Add constructor signature. | 169 Constructor(in long length)] // Add constructor signature. |
| 170 interface ArrayBuffer { | 170 interface ArrayBuffer { |
| 171 }; | 171 }; |
| 172 [Supplemental] | 172 [Supplemental] |
| 173 interface Float32Array { | 173 interface Float32Array { |
| 174 [Suppressed] void set(); | 174 [Suppressed] void set(); |
| 175 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 175 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 176 }; | 176 }; |
| 177 [Supplemental] | 177 [Supplemental] |
| 178 interface Float64Array { | 178 interface Float64Array { |
| 179 [Suppressed] void set(); | 179 [Suppressed] void set(); |
| 180 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 180 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 181 }; | 181 }; |
| 182 [Supplemental] | 182 [Supplemental] |
| 183 interface Int16Array { | 183 interface Int16Array { |
| 184 [Suppressed] void set(); | 184 [Suppressed] void set(); |
| 185 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 185 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 186 }; | 186 }; |
| 187 [Supplemental] | 187 [Supplemental] |
| 188 interface Int32Array { | 188 interface Int32Array { |
| 189 [Suppressed] void set(); | 189 [Suppressed] void set(); |
| 190 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 190 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 191 }; | 191 }; |
| 192 [Supplemental] | 192 [Supplemental] |
| 193 interface Int8Array { | 193 interface Int8Array { |
| 194 [Suppressed] void set(); | 194 [Suppressed] void set(); |
| 195 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 195 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 196 }; | 196 }; |
| 197 [Supplemental] | 197 [Supplemental] |
| 198 interface Uint16Array { | 198 interface Uint16Array { |
| 199 [Suppressed] void set(); | 199 [Suppressed] void set(); |
| 200 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 200 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 201 }; | 201 }; |
| 202 [Supplemental] | 202 [Supplemental] |
| 203 interface Uint32Array { | 203 interface Uint32Array { |
| 204 [Suppressed] void set(); | 204 [Suppressed] void set(); |
| 205 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 205 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 206 }; | 206 }; |
| 207 [Supplemental] | 207 [Supplemental] |
| 208 interface Uint8Array { | 208 interface Uint8Array { |
| 209 [Suppressed] void set(); | 209 [Suppressed] void set(); |
| 210 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 210 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 [Supplemental] | 213 [Supplemental] |
| 214 interface Uint8ClampedArray { | 214 interface Uint8ClampedArray { |
| 215 // Avoid 'overriding static member BYTES_PER_ELEMENT'. | 215 // Avoid 'overriding static member BYTES_PER_ELEMENT'. |
| 216 [Suppressed] const long BYTES_PER_ELEMENT = 1; | 216 [Suppressed] const long BYTES_PER_ELEMENT = 1; |
| 217 | 217 |
| 218 [Suppressed] void set(); | 218 [Suppressed] void set(); |
| 219 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned l
ong offset); | 219 [DartName=setElements, Custom] void set(in any array, optional unsigned long o
ffset); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 [Supplemental] | 222 [Supplemental] |
| 223 interface DataView { | 223 interface DataView { |
| 224 // Undo this: | 224 // Undo this: |
| 225 // We have to use custom code because our code generator does not support int8
_t type. | 225 // We have to use custom code because our code generator does not support int8
_t type. |
| 226 // int8_t getInt8(in unsigned long byteOffset); | 226 // int8_t getInt8(in unsigned long byteOffset); |
| 227 // uint8_t getUint8(in unsigned long byteOffset); | 227 // uint8_t getUint8(in unsigned long byteOffset); |
| 228 [Suppressed] any getInt8(); | 228 [Suppressed] any getInt8(); |
| 229 [Suppressed] any getUint8(); | 229 [Suppressed] any getUint8(); |
| 230 [RaisesException] byte getInt8(in unsigned long byteOffset); | 230 [RaisesException] byte getInt8(in unsigned long byteOffset); |
| 231 [RaisesException] octet getUint8(in unsigned long byteOffset); | 231 [RaisesException] octet getUint8(in unsigned long byteOffset); |
| 232 | 232 |
| 233 // We have to use custom code because our code generator does not support uint
8_t type. | 233 // We have to use custom code because our code generator does not support uint
8_t type. |
| 234 // void setInt8(in unsigned long byteOffset, in int8_t value); | 234 // void setInt8(in unsigned long byteOffset, in int8_t value); |
| 235 // void setUint8(in unsigned long byteOffset, in uint8_t value); | 235 // void setUint8(in unsigned long byteOffset, in uint8_t value); |
| 236 [Suppressed] void setInt8(); | 236 [Suppressed] void setInt8(); |
| 237 [Suppressed] void setUint8(); | 237 [Suppressed] void setUint8(); |
| 238 [RaisesException] void setInt8(in unsigned long byteOffset, in byte value); | 238 [RaisesException] void setInt8(in unsigned long byteOffset, in byte value); |
| 239 [RaisesException] void setUint8(in unsigned long byteOffset, in octet value); | 239 [RaisesException] void setUint8(in unsigned long byteOffset, in octet value); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 // TODO(vsm): Define new names for these (see b/4436830). | 242 // TODO(vsm): Define new names for these (see b/4436830). |
| 243 [Supplemental] | 243 [Supplemental] |
| 244 interface IDBCursor { | 244 interface IDBCursor { |
| 245 [DartName=next] void continue([Optional] in any key); | 245 [Suppressed, CallWith=ScriptExecutionContext, ImplementedAs=continueFunction,
RaisesException] void continue([Default=Undefined] optional any key); |
| 246 [CallWith=ScriptExecutionContext, ImplementedAs=continueFunction, RaisesExcept
ion] void next([Default=Undefined] optional any key); |
| 246 }; | 247 }; |
| 247 [Supplemental] | 248 [Supplemental] |
| 248 interface IDBDatabase { | 249 interface IDBDatabase { |
| 249 // These variants are slated for removal from WebKit. Suppress to bring our | 250 // These variants are slated for removal from WebKit. Suppress to bring our |
| 250 // API in line with the most recent spec. | 251 // API in line with the most recent spec. |
| 251 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MStringList storeNames, in unsigned short mode); | 252 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MStringList storeNames, in unsigned short mode); |
| 252 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString[] storeNames, in unsigned short mode); | 253 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString[] storeNames, in unsigned short mode); |
| 253 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString storeName, in unsigned short mode); | 254 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString storeName, in unsigned short mode); |
| 254 }; | 255 }; |
| 255 | 256 |
| 256 [Supplemental] | 257 [Supplemental] |
| 257 interface IDBKeyRange { | 258 interface IDBKeyRange { |
| 258 [DartName=only_] static IDBKeyRange only(in any value); | 259 [DartName=only_] static IDBKeyRange only(in any value); |
| 259 [DartName=lowerBound_] static IDBKeyRange lowerBound(in any bound, [Optional]
in boolean open); | 260 [DartName=lowerBound_] static IDBKeyRange lowerBound(in any bound, optional bo
olean open); |
| 260 [DartName=upperBound_] static IDBKeyRange upperBound(in any bound, [Optional]
in boolean open); | 261 [DartName=upperBound_] static IDBKeyRange upperBound(in any bound, optional bo
olean open); |
| 261 [DartName=bound_] static IDBKeyRange bound(in any lower, in any upper, [Option
al] in boolean lowerOpen, [Optional] in boolean upperOpen); | 262 [DartName=bound_] static IDBKeyRange bound(in any lower, in any upper, optiona
l boolean lowerOpen, optional boolean upperOpen); |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 interface EntrySync { | 265 interface EntrySync { |
| 265 // Native implementation is declared to return EntrySync. | 266 // Native implementation is declared to return EntrySync. |
| 266 [Suppressed] DirectoryEntrySync getParent(); | 267 [Suppressed] DirectoryEntrySync getParent(); |
| 267 EntrySync getParent(); | 268 EntrySync getParent(); |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 | 271 |
| 271 [Supplemental, | 272 [Supplemental, |
| 272 CustomConstructor, | 273 CustomConstructor, |
| 273 Constructor(in Array blobParts, | 274 Constructor(in Array blobParts, optional DOMString type, optional DOMString en
dings) |
| 274 [Optional] in DOMString type, [Optional] in DOMString endings) | |
| 275 ] | 275 ] |
| 276 interface Blob { | 276 interface Blob { |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 [Supplemental, | 279 [Supplemental, |
| 280 Constructor(float x, float y) | 280 Constructor(float x, float y) |
| 281 ] | 281 ] |
| 282 interface DOMPoint { | 282 interface DOMPoint { |
| 283 }; | 283 }; |
| 284 | 284 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 303 Constructor(MutationCallback callback)] | 303 Constructor(MutationCallback callback)] |
| 304 interface MutationObserver { | 304 interface MutationObserver { |
| 305 // Rename 'observe' so we can define a new 'observe' API that calls the | 305 // Rename 'observe' so we can define a new 'observe' API that calls the |
| 306 // original. | 306 // original. |
| 307 [DartName=_observe] void observe(in Node target, in Dictionary options); | 307 [DartName=_observe] void observe(in Node target, in Dictionary options); |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 [Supplemental, | 310 [Supplemental, |
| 311 CustomConstructor, | 311 CustomConstructor, |
| 312 // Provide missing constructor signature. | 312 // Provide missing constructor signature. |
| 313 Constructor([Optional] in HTMLFormElement form)] | 313 Constructor(optional HTMLFormElement form)] |
| 314 interface DOMFormData { | 314 interface DOMFormData { |
| 315 [Suppressed] void append(in DOMString name, in DOMString value, in DOMString
filename); | 315 [Suppressed] void append(in DOMString name, in DOMString value, in DOMString
filename); |
| 316 [Custom] void append(in DOMString name, in DOMString value); | 316 [Custom] void append(in DOMString name, in DOMString value); |
| 317 [Custom] void append(in DOMString name, in Blob value, [Optional] in DOMStri
ng filename); | 317 [Custom] void append(in DOMString name, in Blob value, optional DOMString fi
lename); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 [Supplemental] | 320 [Supplemental] |
| 321 interface SQLResultSetRowList { | 321 interface SQLResultSetRowList { |
| 322 // Change the return type to Dictionary so that rows are exposed in the Dart | 322 // Change the return type to Dictionary so that rows are exposed in the Dart |
| 323 // API as a Maps, with the appropriate conversion in JavaScript. | 323 // API as a Maps, with the appropriate conversion in JavaScript. |
| 324 [Suppressed] any item(in unsigned long index); | 324 [Suppressed] any item(in unsigned long index); |
| 325 [Custom] Dictionary item(in unsigned long index); | 325 [Custom] Dictionary item(in unsigned long index); |
| 326 }; | 326 }; |
| 327 | 327 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 [Suppressed] | 363 [Suppressed] |
| 364 interface InspectorFrontendHost {}; | 364 interface InspectorFrontendHost {}; |
| 365 | 365 |
| 366 | 366 |
| 367 [Suppressed] | 367 [Suppressed] |
| 368 interface JavaScriptCallFrame {}; | 368 interface JavaScriptCallFrame {}; |
| 369 | 369 |
| 370 | 370 |
| 371 [Suppressed] | 371 [Suppressed] |
| 372 interface Entity {}; | 372 interface Entity {}; |
| OLD | NEW |