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

Unified Diff: lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate

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/templates/html/frog/factoryprovider_MutationObserver.darttemplate
diff --git a/lib/dom/templates/dom/dummy/factoryprovider.darttemplate b/lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
similarity index 51%
copy from lib/dom/templates/dom/dummy/factoryprovider.darttemplate
copy to lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
index 68fc08702ba52cba199fe40319ffa1fdf1549381..99a2206f80328ffe643039f4f3ec6bf14db0075a 100644
--- a/lib/dom/templates/dom/dummy/factoryprovider.darttemplate
+++ b/lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
@@ -3,5 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
class $FACTORYPROVIDER {
- factory $CONSTRUCTOR($PARAMETERS) => _dummy();
+ factory $CONSTRUCTOR(MutationCallback callback) native '''
+ var constructor =
+ window.MutationObserver || window.WebKitMutationObserver ||
+ window.MozMutationObserver;
+ return new constructor(callback);
+ ''';
}

Powered by Google App Engine
This is Rietveld 408576698