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

Unified Diff: lib/dom/frog/dom_frog.dart

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/frog/dom_frog.dart
diff --git a/lib/dom/frog/dom_frog.dart b/lib/dom/frog/dom_frog.dart
index c565c996d868d3ae749f7535cb35b12a4fd204d9..c754c94045764a47e447c0def64013d9d29b5891 100644
--- a/lib/dom/frog/dom_frog.dart
+++ b/lib/dom/frog/dom_frog.dart
@@ -5255,7 +5255,7 @@ class _MutationObserverJs extends _DOMTypeJs implements MutationObserver native
void disconnect() native;
- void observe(_NodeJs target, Map options) native;
+ void _observe(_NodeJs target, Map options) native 'observe';
List<MutationRecord> takeRecords() native;
}
@@ -12067,6 +12067,14 @@ class _MessageChannelFactoryProvider {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+class _MutationObserverFactoryProvider {
+ factory MutationObserver(MutationCallback callback) native
+ '''return new MutationObserver(callback);''';
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
class _NotificationFactoryProvider {
factory Notification(String title, [Map options]) native
'''return new Notification(title, options);''';
@@ -18031,11 +18039,13 @@ interface MutationEvent extends Event {
// WARNING: Do not edit - generated code.
-interface MutationObserver {
+interface MutationObserver default _MutationObserverFactoryProvider {
+
+ MutationObserver(MutationCallback callback);
void disconnect();
- void observe(Node target, Map options);
+ void _observe(Node target, Map options);
List<MutationRecord> takeRecords();
}

Powered by Google App Engine
This is Rietveld 408576698