| 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 | 6 |
| 7 [Supplemental] | 7 [Supplemental] |
| 8 interface Document { | 8 interface Document { |
| 9 [Suppressed] DOMObject getCSSCanvasContext(in DOMString contextId, in DOMStrin
g name, in long width, in long height); | 9 [Suppressed] DOMObject getCSSCanvasContext(in DOMString contextId, in DOMStrin
g name, in long width, in long height); |
| 10 CanvasRenderingContext getCSSCanvasContext(in DOMString contextId, in DOMStrin
g name, in long width, in long height); | 10 CanvasRenderingContext getCSSCanvasContext(in DOMString contextId, in DOMStrin
g name, in long width, in long height); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 }; | 26 }; |
| 27 Element implements ElementTraversal; | 27 Element implements ElementTraversal; |
| 28 | 28 |
| 29 [Callback] | 29 [Callback] |
| 30 interface TimeoutHandler { | 30 interface TimeoutHandler { |
| 31 void handleEvent(); | 31 void handleEvent(); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 [Supplemental] | 34 [Supplemental] |
| 35 interface CanvasRenderingContext2D { | 35 interface CanvasRenderingContext2D { |
| 36 [DartName=createImageDataFromImageData] ImageData createImageData(in ImageData
imagedata) raises (DOMException); | 36 [DartName=createImageDataFromImageData] ImageData createImageData(in ImageData
imagedata); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 [Supplemental] | 39 [Supplemental] |
| 40 interface Console { | 40 interface Console { |
| 41 [Suppressed] void assert(in boolean condition); | 41 [Suppressed] void assert(in boolean condition); |
| 42 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; | 42 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 interface HTMLCanvasElement { | 45 interface HTMLCanvasElement { |
| 46 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Optional=DefaultIsUndefined] in DOMString type) raises(DOMException); | 46 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Optional=DefaultIsUndefined] in DOMString type); |
| 47 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr
ing,Optional=DefaultIsUndefined] in DOMString type, [Optional] in float quality)
raises(DOMException); | 47 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr
ing,Optional=DefaultIsUndefined] in DOMString type, [Optional] in float quality)
; |
| 48 | 48 |
| 49 [Suppressed] any getContext(in DOMString contextId); | 49 [Suppressed] any getContext(in DOMString contextId); |
| 50 [Custom] CanvasRenderingContext getContext(in DOMString contextId, [Optional]
in Dictionary attrs); | 50 [Custom] CanvasRenderingContext getContext(in DOMString contextId, [Optional]
in Dictionary attrs); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 [Supplemental] | 53 [Supplemental] |
| 54 interface HTMLOptionsCollection { | 54 interface HTMLOptionsCollection { |
| 55 [Suppressed] void add([Optional] in HTMLOptionElement element, [Optional] in l
ong before); | 55 [Suppressed] void add([Optional] in HTMLOptionElement element, [Optional] in l
ong before); |
| 56 }; | 56 }; |
| 57 | 57 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 [Optional] in boolean cancelableArg, | 99 [Optional] in boolean cancelableArg, |
| 100 [Optional] in DOMString statusMessageArg); | 100 [Optional] in DOMString statusMessageArg); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 [Supplemental] | 103 [Supplemental] |
| 104 interface WebGLRenderingContext { | 104 interface WebGLRenderingContext { |
| 105 | 105 |
| 106 //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); | 106 //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); |
| 107 //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); | 107 //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); |
| 108 | 108 |
| 109 [Custom] any getBufferParameter(in unsigned long target, in unsigned long pnam
e) raises(DOMException); | 109 [Custom] any getBufferParameter(in unsigned long target, in unsigned long pnam
e); |
| 110 [Suppressed, StrictTypeChecking, Custom] void getBufferParameter(); | 110 [Suppressed, StrictTypeChecking, Custom] void getBufferParameter(); |
| 111 | 111 |
| 112 [Custom] any getFramebufferAttachmentParameter(in unsigned long target, in uns
igned long attachment, in unsigned long pname) raises(DOMException); | 112 [Custom] any getFramebufferAttachmentParameter(in unsigned long target, in uns
igned long attachment, in unsigned long pname); |
| 113 [Suppressed, StrictTypeChecking, Custom] void getFramebufferAttachmentParamete
r(); | 113 [Suppressed, StrictTypeChecking, Custom] void getFramebufferAttachmentParamete
r(); |
| 114 | 114 |
| 115 [Custom] any getParameter(in unsigned long pname) raises(DOMException); | 115 [Custom] any getParameter(in unsigned long pname); |
| 116 [Suppressed, StrictTypeChecking, Custom] void getParameter(); | 116 [Suppressed, StrictTypeChecking, Custom] void getParameter(); |
| 117 | 117 |
| 118 [Custom] any getProgramParameter(in WebGLProgram program, in unsigned long pna
me) raises(DOMException); | 118 [Custom] any getProgramParameter(in WebGLProgram program, in unsigned long pna
me); |
| 119 [Suppressed, StrictTypeChecking, Custom] void getProgramParameter(); | 119 [Suppressed, StrictTypeChecking, Custom] void getProgramParameter(); |
| 120 | 120 |
| 121 [Custom] any getRenderbufferParameter(in unsigned long target, in unsigned lon
g pname) raises(DOMException); | 121 [Custom] any getRenderbufferParameter(in unsigned long target, in unsigned lon
g pname); |
| 122 [Suppressed, StrictTypeChecking, Custom] void getRenderbufferParameter(); | 122 [Suppressed, StrictTypeChecking, Custom] void getRenderbufferParameter(); |
| 123 | 123 |
| 124 [Custom] any getShaderParameter(in WebGLShader shader, in unsigned long pname)
raises(DOMException); | 124 [Custom] any getShaderParameter(in WebGLShader shader, in unsigned long pname)
; |
| 125 [Suppressed, StrictTypeChecking, Custom] void getShaderParameter() raises(DOME
xception); | 125 [Suppressed, StrictTypeChecking, Custom] void getShaderParameter(); |
| 126 | 126 |
| 127 // TBD | 127 // TBD |
| 128 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, G
Lint* range, GLint* precision); | 128 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, G
Lint* range, GLint* precision); |
| 129 | 129 |
| 130 [Custom] any getExtension(DOMString name); | 130 [Custom] any getExtension(DOMString name); |
| 131 [Suppressed, StrictTypeChecking, Custom] void getExtension(DOMString name); | 131 [Suppressed, StrictTypeChecking, Custom] void getExtension(DOMString name); |
| 132 [Custom] DOMString[] getSupportedExtensions(); | 132 [Custom] DOMString[] getSupportedExtensions(); |
| 133 [Suppressed, StrictTypeChecking, Custom] void getSupportedExtensions(); | 133 [Suppressed, StrictTypeChecking, Custom] void getSupportedExtensions(); |
| 134 | 134 |
| 135 [Custom] any getTexParameter(in unsigned long target, in unsigned long pname)
raises(DOMException); | 135 [Custom] any getTexParameter(in unsigned long target, in unsigned long pname); |
| 136 [Suppressed, StrictTypeChecking, Custom] void getTexParameter(); | 136 [Suppressed, StrictTypeChecking, Custom] void getTexParameter(); |
| 137 | 137 |
| 138 [Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation locat
ion) raises(DOMException); | 138 [Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation locat
ion); |
| 139 [Suppressed, StrictTypeChecking, Custom] void getUniform(); | 139 [Suppressed, StrictTypeChecking, Custom] void getUniform(); |
| 140 | 140 |
| 141 [Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname) r
aises(DOMException); | 141 [Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname); |
| 142 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); | 142 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); |
| 143 }; | 143 }; |
| 144 | |
| 145 [Supplemental] | 144 [Supplemental] |
| 146 interface CSSStyleDeclaration { | 145 interface CSSStyleDeclaration { |
| 147 void setProperty(in DOMString propertyName, in DOMString value, [Optional] in
DOMString priority); | 146 void setProperty(in DOMString propertyName, in DOMString value, [Optional] in
DOMString priority); |
| 148 [DartName=_getPropertyValue] DOMString getPropertyValue(in DOMString propertyN
ame); | 147 [DartName=_getPropertyValue] DOMString getPropertyValue(in DOMString propertyN
ame); |
| 149 }; | 148 }; |
| 150 | 149 |
| 151 [Supplemental, | 150 [Supplemental, |
| 152 Constructor(in long length)] // Add constructor signature. | 151 Constructor(in long length)] // Add constructor signature. |
| 153 interface ArrayBuffer { | 152 interface ArrayBuffer { |
| 154 }; | 153 }; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 [Optional] in unsigned long byteOffset, | 206 [Optional] in unsigned long byteOffset, |
| 208 [Optional] in unsigned long byteLength) | 207 [Optional] in unsigned long byteLength) |
| 209 ] | 208 ] |
| 210 interface DataView { | 209 interface DataView { |
| 211 // Undo this: | 210 // Undo this: |
| 212 // We have to use custom code because our code generator does not support int8
_t type. | 211 // We have to use custom code because our code generator does not support int8
_t type. |
| 213 // int8_t getInt8(in unsigned long byteOffset); | 212 // int8_t getInt8(in unsigned long byteOffset); |
| 214 // uint8_t getUint8(in unsigned long byteOffset); | 213 // uint8_t getUint8(in unsigned long byteOffset); |
| 215 [Suppressed] any getInt8(); | 214 [Suppressed] any getInt8(); |
| 216 [Suppressed] any getUint8(); | 215 [Suppressed] any getUint8(); |
| 217 byte getInt8(in unsigned long byteOffset) | 216 [RaisesException] byte getInt8(in unsigned long byteOffset); |
| 218 raises (DOMException); | 217 [RaisesException] octet getUint8(in unsigned long byteOffset); |
| 219 octet getUint8(in unsigned long byteOffset) | |
| 220 raises (DOMException); | |
| 221 | 218 |
| 222 // We have to use custom code because our code generator does not support uint
8_t type. | 219 // We have to use custom code because our code generator does not support uint
8_t type. |
| 223 // void setInt8(in unsigned long byteOffset, in int8_t value); | 220 // void setInt8(in unsigned long byteOffset, in int8_t value); |
| 224 // void setUint8(in unsigned long byteOffset, in uint8_t value); | 221 // void setUint8(in unsigned long byteOffset, in uint8_t value); |
| 225 [Suppressed] void setInt8(); | 222 [Suppressed] void setInt8(); |
| 226 [Suppressed] void setUint8(); | 223 [Suppressed] void setUint8(); |
| 227 void setInt8(in unsigned long byteOffset, in byte value) | 224 [RaisesException] void setInt8(in unsigned long byteOffset, in byte value); |
| 228 raises (DOMException); | 225 [RaisesException] void setUint8(in unsigned long byteOffset, in octet value); |
| 229 void setUint8(in unsigned long byteOffset, in octet value) | |
| 230 raises (DOMException); | |
| 231 }; | 226 }; |
| 232 | 227 |
| 233 // TODO(vsm): Define new names for these (see b/4436830). | 228 // TODO(vsm): Define new names for these (see b/4436830). |
| 234 [Supplemental] | 229 [Supplemental] |
| 235 interface IDBCursor { | 230 interface IDBCursor { |
| 236 [DartName=next] void continue([Optional] in any key); | 231 [DartName=next] void continue([Optional] in any key); |
| 237 }; | 232 }; |
| 238 [Supplemental] | 233 [Supplemental] |
| 239 interface IDBDatabase { | 234 interface IDBDatabase { |
| 240 // These variants are slated for removal from WebKit. Suppress to bring our | 235 // These variants are slated for removal from WebKit. Suppress to bring our |
| 241 // API in line with the most recent spec. | 236 // API in line with the most recent spec. |
| 242 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MStringList storeNames, in unsigned short mode) | 237 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MStringList storeNames, in unsigned short mode); |
| 243 raises (IDBDatabaseException); | 238 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString[] storeNames, in unsigned short mode); |
| 244 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString[] storeNames, in unsigned short mode) | 239 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString storeName, in unsigned short mode); |
| 245 raises (IDBDatabaseException); | |
| 246 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(in DO
MString storeName, in unsigned short mode) | |
| 247 raises (IDBDatabaseException); | |
| 248 }; | 240 }; |
| 249 | 241 |
| 250 [Supplemental] | 242 [Supplemental] |
| 251 interface IDBKeyRange { | 243 interface IDBKeyRange { |
| 252 [DartName=only_] static IDBKeyRange only(in any value) raises (IDBDatabaseExce
ption); | 244 [DartName=only_] static IDBKeyRange only(in any value); |
| 253 [DartName=lowerBound_] static IDBKeyRange lowerBound(in any bound, [Optional]
in boolean open) raises (IDBDatabaseException); | 245 [DartName=lowerBound_] static IDBKeyRange lowerBound(in any bound, [Optional]
in boolean open); |
| 254 [DartName=upperBound_] static IDBKeyRange upperBound(in any bound, [Optional]
in boolean open) raises (IDBDatabaseException); | 246 [DartName=upperBound_] static IDBKeyRange upperBound(in any bound, [Optional]
in boolean open); |
| 255 [DartName=bound_] static IDBKeyRange bound(in any lower, in any upper, [Option
al] in boolean lowerOpen, [Optional] in boolean upperOpen) raises (IDBDatabaseEx
ception); | 247 [DartName=bound_] static IDBKeyRange bound(in any lower, in any upper, [Option
al] in boolean lowerOpen, [Optional] in boolean upperOpen); |
| 256 }; | 248 }; |
| 257 | 249 |
| 258 interface EntrySync { | 250 interface EntrySync { |
| 259 // Native implementation is declared to return EntrySync. | 251 // Native implementation is declared to return EntrySync. |
| 260 [Suppressed] DirectoryEntrySync getParent(); | 252 [Suppressed] DirectoryEntrySync getParent(); |
| 261 EntrySync getParent(); | 253 EntrySync getParent(); |
| 262 }; | 254 }; |
| 263 | 255 |
| 264 | 256 |
| 265 [Supplemental, | 257 [Supplemental, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 291 [Custom] boolean handleEvent(in MutationRecordArray mutations, in MutationObse
rver observer); | 283 [Custom] boolean handleEvent(in MutationRecordArray mutations, in MutationObse
rver observer); |
| 292 }; | 284 }; |
| 293 | 285 |
| 294 [Supplemental, | 286 [Supplemental, |
| 295 CustomConstructor, | 287 CustomConstructor, |
| 296 // Provide missing constructor signature. | 288 // Provide missing constructor signature. |
| 297 Constructor(MutationCallback callback)] | 289 Constructor(MutationCallback callback)] |
| 298 interface MutationObserver { | 290 interface MutationObserver { |
| 299 // Rename 'observe' so we can define a new 'observe' API that calls the | 291 // Rename 'observe' so we can define a new 'observe' API that calls the |
| 300 // original. | 292 // original. |
| 301 [DartName=_observe] void observe(in Node target, in Dictionary options) | 293 [DartName=_observe] void observe(in Node target, in Dictionary options); |
| 302 raises(DOMException); | |
| 303 }; | 294 }; |
| 304 | 295 |
| 305 [Supplemental, | 296 [Supplemental, |
| 306 CustomConstructor, | 297 CustomConstructor, |
| 307 // Provide missing constructor signature. | 298 // Provide missing constructor signature. |
| 308 Constructor([Optional] in HTMLFormElement form)] | 299 Constructor([Optional] in HTMLFormElement form)] |
| 309 interface DOMFormData { | 300 interface DOMFormData { |
| 310 [Suppressed] void append(in DOMString name, in DOMString value, in DOMString
filename); | 301 [Suppressed] void append(in DOMString name, in DOMString value, in DOMString
filename); |
| 311 [Custom] void append(in DOMString name, in DOMString value); | 302 [Custom] void append(in DOMString name, in DOMString value); |
| 312 [Custom] void append(in DOMString name, in Blob value, [Optional] in DOMStri
ng filename); | 303 [Custom] void append(in DOMString name, in Blob value, [Optional] in DOMStri
ng filename); |
| 313 }; | 304 }; |
| 314 | 305 |
| 315 [Supplemental] | 306 [Supplemental] |
| 316 interface SQLResultSetRowList { | 307 interface SQLResultSetRowList { |
| 317 // Change the return type to Dictionary so that rows are exposed in the Dart | 308 // Change the return type to Dictionary so that rows are exposed in the Dart |
| 318 // API as a Maps, with the appropriate conversion in JavaScript. | 309 // API as a Maps, with the appropriate conversion in JavaScript. |
| 319 [Suppressed] any item(in unsigned long index); | 310 [Suppressed] any item(in unsigned long index); |
| 320 [Custom] Dictionary item(in unsigned long index); | 311 [Custom] Dictionary item(in unsigned long index); |
| 321 }; | 312 }; |
| 322 | 313 |
| 323 [Supplemental] | 314 [Supplemental] |
| 324 interface WebSocket { | 315 interface WebSocket { |
| 325 // Suppress the default since it has non-standard return type and add | 316 // Suppress the default since it has non-standard return type and add |
| 326 // overrides. | 317 // overrides. |
| 327 [Suppressed] boolean send(in ArrayBuffer data) raises(DOMException); | 318 [Suppressed] boolean send(in ArrayBuffer data); |
| 328 [Suppressed] boolean send(in ArrayBufferView data) raises(DOMException); | 319 [Suppressed] boolean send(in ArrayBufferView data); |
| 329 [Suppressed] boolean send(in Blob data) raises(DOMException); | 320 [Suppressed] boolean send(in Blob data); |
| 330 [Suppressed] boolean send(in DOMString data) raises(DOMException); | 321 [Suppressed] boolean send(in DOMString data); |
| 331 | 322 |
| 332 [Custom] void send(DOMString data) raises(DOMException); | 323 [Custom] void send(DOMString data); |
| 333 [Custom] void send(Blob data) raises(DOMException); | 324 [Custom] void send(Blob data); |
| 334 [Custom] void send(ArrayBuffer data) raises(DOMException); | 325 [Custom] void send(ArrayBuffer data); |
| 335 [Custom] void send(ArrayBufferView data) raises(DOMException); | 326 [Custom] void send(ArrayBufferView data); |
| 336 }; | 327 }; |
| 337 | 328 |
| 338 [Supplemental] | 329 [Supplemental] |
| 339 interface XMLHttpRequest { | 330 interface XMLHttpRequest { |
| 340 [Custom] void send() | 331 [Custom] void send(); |
| 341 raises(DOMException); | 332 [Custom] void send(in ArrayBuffer data); // FIXME: this should be eventually
deprecated. |
| 342 [Custom] void send(in ArrayBuffer data) // FIXME: this should be eventually d
eprecated. | 333 [Custom] void send(in ArrayBufferView data); |
| 343 raises(DOMException); | 334 [Conditional=BLOB, Custom] void send(in Blob data); |
| 344 [Custom] void send(in ArrayBufferView data) | 335 [Custom] void send(in Document data); |
| 345 raises(DOMException); | 336 [Custom] void send([StrictTypeChecking] in DOMString data); |
| 346 [Conditional=BLOB, Custom] void send(in Blob data) | 337 [Custom] void send(in DOMFormData data); |
| 347 raises(DOMException); | |
| 348 [Custom] void send(in Document data) | |
| 349 raises(DOMException); | |
| 350 [Custom] void send([StrictTypeChecking] in DOMString data) | |
| 351 raises(DOMException); | |
| 352 [Custom] void send(in DOMFormData data) | |
| 353 raises(DOMException); | |
| 354 }; | 338 }; |
| 355 | 339 |
| 356 | 340 |
| 357 [Suppressed] | 341 [Suppressed] |
| 358 interface AbstractView {}; | 342 interface AbstractView {}; |
| 359 | 343 |
| 360 | 344 |
| 361 [Suppressed] | 345 [Suppressed] |
| 362 interface InjectedScriptHost {}; | 346 interface InjectedScriptHost {}; |
| 363 | 347 |
| 364 | 348 |
| 365 [Suppressed] | 349 [Suppressed] |
| 366 interface InspectorFrontendHost {}; | 350 interface InspectorFrontendHost {}; |
| 367 | 351 |
| 368 | 352 |
| 369 [Suppressed] | 353 [Suppressed] |
| 370 interface JavaScriptCallFrame {}; | 354 interface JavaScriptCallFrame {}; |
| 371 | 355 |
| 372 | 356 |
| 373 [Suppressed] | 357 [Suppressed] |
| 374 interface ScriptProfile {}; | 358 interface ScriptProfile {}; |
| 375 | 359 |
| 376 | 360 |
| 377 [Suppressed] | 361 [Suppressed] |
| 378 interface ScriptProfileNode {}; | 362 interface ScriptProfileNode {}; |
| 379 | 363 |
| 380 | 364 |
| 381 [Suppressed] | 365 [Suppressed] |
| 382 interface Entity {}; | 366 interface Entity {}; |
| OLD | NEW |