| 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); |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 [Supplemental] | 13 [Supplemental] |
| 14 interface ScriptProcessorNode { | 14 interface ScriptProcessorNode { |
| 15 // FIXME(antonm): provide proper support. | 15 // FIXME(antonm): provide proper support. |
| 16 [Suppressed] attribute EventListener onaudioprocess; | 16 [Suppressed] attribute EventListener onaudioprocess; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 // Force ElementTraversal. WebKit defines these directly. | 19 // Force ElementTraversal. WebKit defines these directly. |
| 20 interface ElementTraversal { | 20 interface ElementTraversal { |
| 21 readonly attribute unsigned long childElementCount; | 21 readonly attribute unsigned long childElementCount; |
| 22 readonly attribute Element firstElementChild; | 22 readonly attribute Element firstElementChild; |
| 23 readonly attribute Element lastElementChild; | 23 readonly attribute Element lastElementChild; |
| 24 readonly attribute Element nextElementSibling; | 24 readonly attribute Element nextElementSibling; |
| 25 readonly attribute Element previousElementSibling; | 25 readonly attribute Element previousElementSibling; |
| 26 }; | 26 }; |
| 27 Element implements ElementTraversal; | 27 Element implements ElementTraversal; |
| 28 | 28 |
| 29 // TODO(antonm): fix it |
| 30 [Supplemental, Constructor] |
| 31 interface MediaStream {}; |
| 32 |
| 29 [Callback] | 33 [Callback] |
| 30 interface TimeoutHandler { | 34 interface TimeoutHandler { |
| 31 void handleEvent(); | 35 void handleEvent(); |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 [Supplemental] | 38 [Supplemental] |
| 35 interface Console { | 39 interface Console { |
| 36 [Suppressed] void assert(in boolean condition); | 40 [Suppressed] void assert(in boolean condition); |
| 37 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; | 41 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; |
| 38 }; | 42 }; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 }; | 284 }; |
| 281 | 285 |
| 282 [Supplemental, Callback] // Add missing Callback attribute. | 286 [Supplemental, Callback] // Add missing Callback attribute. |
| 283 interface VoidCallback { | 287 interface VoidCallback { |
| 284 }; | 288 }; |
| 285 | 289 |
| 286 interface SVGNumber { | 290 interface SVGNumber { |
| 287 [StrictTypeChecking, Custom] attribute float value; | 291 [StrictTypeChecking, Custom] attribute float value; |
| 288 }; | 292 }; |
| 289 | 293 |
| 294 // TODO(antonm): get rid of it to follow V8 bindings. |
| 295 [ |
| 296 Callback |
| 297 ] interface MutationCallback { |
| 298 [Custom] boolean handleEvent(in MutationRecordArray mutations, in MutationObse
rver observer); |
| 299 }; |
| 300 |
| 290 [Supplemental, | 301 [Supplemental, |
| 291 CustomConstructor, | 302 CustomConstructor, |
| 292 // Provide missing constructor signature. | 303 // Provide missing constructor signature. |
| 293 Constructor(MutationCallback callback)] | 304 Constructor(MutationCallback callback)] |
| 294 interface MutationObserver { | 305 interface MutationObserver { |
| 295 // Rename 'observe' so we can define a new 'observe' API that calls the | 306 // Rename 'observe' so we can define a new 'observe' API that calls the |
| 296 // original. | 307 // original. |
| 297 [DartName=_observe] void observe(in Node target, in Dictionary options) | 308 [DartName=_observe] void observe(in Node target, in Dictionary options) |
| 298 raises(DOMException); | 309 raises(DOMException); |
| 299 }; | 310 }; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 326 [Suppressed] boolean send(in DOMString data) raises(DOMException); | 337 [Suppressed] boolean send(in DOMString data) raises(DOMException); |
| 327 | 338 |
| 328 [Custom] void send(DOMString data) raises(DOMException); | 339 [Custom] void send(DOMString data) raises(DOMException); |
| 329 [Custom] void send(Blob data) raises(DOMException); | 340 [Custom] void send(Blob data) raises(DOMException); |
| 330 [Custom] void send(ArrayBuffer data) raises(DOMException); | 341 [Custom] void send(ArrayBuffer data) raises(DOMException); |
| 331 [Custom] void send(ArrayBufferView data) raises(DOMException); | 342 [Custom] void send(ArrayBufferView data) raises(DOMException); |
| 332 }; | 343 }; |
| 333 | 344 |
| 334 [Suppressed] | 345 [Suppressed] |
| 335 interface Entity {}; | 346 interface Entity {}; |
| OLD | NEW |