Chromium Code Reviews| Index: lib/dom/idl/dart/dart.idl |
| diff --git a/lib/dom/idl/dart/dart.idl b/lib/dom/idl/dart/dart.idl |
| index 2cc6d1c2b25e9b464a31bf818f96b0890f5cf49f..e41da0d44df45a350e36d748777ce993656baf51 100644 |
| --- a/lib/dom/idl/dart/dart.idl |
| +++ b/lib/dom/idl/dart/dart.idl |
| @@ -277,3 +277,23 @@ module svg { |
| [StrictTypeChecking, Custom] attribute float value; |
| }; |
| } |
| + |
| +module core { |
| + [Supplemental] |
| + interface MutationCallback { |
| + // Change MutationRecordArray to MutationRecord[]. |
| + [Suppressed, Custom] boolean handleEvent(in MutationRecordArray mutations, in WebKitMutationObserver observer); |
| + [Custom] boolean handleEvent(in MutationRecord[] mutations, in WebKitMutationObserver observer); |
| + }; |
| + |
| + [Supplemental, |
| + CustomConstructor, |
| + // Provide missing constructor signature. |
| + Constructor(MutationCallback callback)] |
| + interface WebKitMutationObserver { |
| + // Rename 'observe' so we can define a new 'observe' API implemented using |
| + // the original. |
| + [DartName=_observe] void observe(in Node target, in Dictionary options) |
|
Anton Muhin
2012/07/13 10:50:47
as you probably already know, that's exactly the s
sra1
2012/07/19 00:34:54
Yes. To copy the extended attribute DartName onto
|
| + raises(DOMException); |
| + }; |
| +} |