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

Side by Side Diff: lib/dom/templates/html/impl/impl_MutationObserver.darttemplate

Issue 10800104: Convert DOM and HTML frog to dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 5 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
6 $!MEMBERS 6 $!MEMBERS
7 void observe(Node target, 7 void observe(Node target,
8 [Map options, 8 [Map options,
9 bool childList, 9 bool childList,
10 bool attributes, 10 bool attributes,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 $if DARTIUM 60 $if DARTIUM
61 static _createDict() => {}; 61 static _createDict() => {};
62 static _add(m, String key, value) { m[key] = value; } 62 static _add(m, String key, value) { m[key] = value; }
63 static _fixupList(list) => list; 63 static _fixupList(list) => list;
64 64
65 _call(Node target, options) { 65 _call(Node target, options) {
66 _observe(target, options); 66 _observe(target, options);
67 } 67 }
68 $endif 68 $endif
69 69
70 $if FROG 70 $if DART2JS
71 static _createDict() => JS('var', '{}'); 71 static _createDict() => JS('var', '{}');
72 static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); } 72 static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); }
73 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. 73 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array.
74 74
75 // Call native function with no conversions. 75 // Call native function with no conversions.
76 _call(target, options) native 'observe'; 76 _call(target, options) native 'observe';
77 $endif 77 $endif
78 } 78 }
OLDNEW
« no previous file with comments | « lib/dom/templates/html/impl/impl_Element.darttemplate ('k') | lib/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698