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

Side by Side Diff: lib/dom/templates/html/dart2js/html_dart2js.darttemplate

Issue 10837088: Implement spawnDomFunction (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix return type 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 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated dart:html library. 6 // Auto-generated dart:html library.
7 7
8 #library('dart:html'); 8 #library('dart:html');
9 9
10 #import('dart:isolate'); 10 #import('dart:isolate');
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 if (!window.$dart$isolate$counter) { 56 if (!window.$dart$isolate$counter) {
57 window.$dart$isolate$counter = 1; 57 window.$dart$isolate$counter = 1;
58 } 58 }
59 return window.$dart$isolate$counter++; 59 return window.$dart$isolate$counter++;
60 '''; 60 ''';
61 61
62 // Fast path to invoke JS send port. 62 // Fast path to invoke JS send port.
63 _callPortSync(int id, message) { 63 _callPortSync(int id, message) {
64 return JS('var', @'ReceivePortSync.dispatchCall(#, #)', id, message); 64 return JS('var', @'ReceivePortSync.dispatchCall(#, #)', id, message);
65 } 65 }
66
67 // TODO(vsm): Plumb this properly.
68 spawnDomFunction(f) => spawnFunction(f);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698