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

Unified Diff: lib/dom/idl/dart/dart.idl

Issue 10696209: MutationObserver (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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);
+ };
+}

Powered by Google App Engine
This is Rietveld 408576698