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

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 88b77ca828d61841fd49c53ff9467ff167056e57..340cadf5a58e9d6bab714b5355dd394e6c756300 100644
--- a/lib/dom/frog/dom_frog.dart
+++ b/lib/dom/frog/dom_frog.dart
@@ -5230,9 +5230,6 @@ class _MouseEventJs extends _UIEventJs implements MouseEvent native "*MouseEvent
void initMouseEvent(String type, bool canBubble, bool cancelable, _DOMWindowJs view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetJs relatedTarget) native;
}
-class _MutationCallbackJs extends _DOMTypeJs implements MutationCallback native "*MutationCallback" {
-}
-
class _MutationEventJs extends _EventJs implements MutationEvent native "*MutationEvent" {
static final int ADDITION = 2;
@@ -11585,7 +11582,7 @@ class _WebKitMutationObserverJs extends _DOMTypeJs implements WebKitMutationObse
void disconnect() native;
- void observe(_NodeJs target, Map options) native;
+ void _observe(_NodeJs target, Map options) native 'observe';
List<MutationRecord> takeRecords() native;
}
@@ -12153,6 +12150,14 @@ return new WebKitCSSMatrix(cssValue);
// 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 _WebKitMutationObserverFactoryProvider {
+ factory WebKitMutationObserver(MutationCallback callback) native
+ '''return new WebKitMutationObserver(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 _WorkerFactoryProvider {
factory Worker(String scriptUrl) native
'''return new Worker(scriptUrl);''';
@@ -17989,8 +17994,7 @@ interface MouseEvent extends UIEvent {
// WARNING: Do not edit - generated code.
-interface MutationCallback {
-}
+typedef bool MutationCallback(List<MutationRecord> mutations, WebKitMutationObserver observer);
// 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.
@@ -23817,11 +23821,13 @@ interface WebKitCSSTransformValue extends CSSValueList {
// WARNING: Do not edit - generated code.
-interface WebKitMutationObserver {
+interface WebKitMutationObserver default _WebKitMutationObserverFactoryProvider {
+
+ WebKitMutationObserver(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