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

Unified Diff: tools/dom/templates/html/impl/impl_MutationObserver.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 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: tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
index 8a3e4091da6745666c6ee1a7cbb8d5110657210a..d4f020331718e2030ccde9dee089c5719c0106b4 100644
--- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
+++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
@@ -11,17 +11,9 @@ $!MEMBERS
* platform.
*/
static bool get supported {
-$if DARTIUM
- return true;
-$else
return JS('bool',
'!!(window.MutationObserver || window.WebKitMutationObserver)');
-$endif
}
-$if DARTIUM
- @DocsEditable()
- static MutationObserver _create(callback) => _blink.BlinkMutationObserver.instance.constructorCallback_1_(callback);
-$endif
/**
* Observes the target for the specified changes.
@@ -72,17 +64,7 @@ $endif
'attributeOldValue': true,
'characterDataOldValue': true };
-$if DARTIUM
- static _createDict() => {};
- static _add(m, String key, value) { m[key] = value; }
- static _fixupList(list) => list;
- void _call(Node target, options) {
- _observe(target, options);
- }
-$endif
-
-$if DART2JS
static _createDict() => JS('var', '{}');
static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); }
static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array.
@@ -100,8 +82,4 @@ $if DART2JS
'window.MozMutationObserver)(#)',
convertDartClosureToJS(_wrapBinaryZone(callback), 2));
}
-$else
- factory MutationObserver(MutationCallback callback) =>
- new MutationObserver._(_wrapBinaryZone(callback));
-$endif
}

Powered by Google App Engine
This is Rietveld 408576698