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

Side by Side Diff: lib/dom/templates/html/frog/html_frog.darttemplate

Issue 10694082: Add the JS helper function to all libraries where we allow the native syntax. (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 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('html'); 8 #library('html');
9 9
10 #import('dart:isolate'); 10 #import('dart:isolate');
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 } 69 }
70 70
71 class _JsSendPortSync implements SendPortSync { 71 class _JsSendPortSync implements SendPortSync {
72 72
73 num _id; 73 num _id;
74 _JsSendPortSync(this._id); 74 _JsSendPortSync(this._id);
75 75
76 callSync(var message) { 76 callSync(var message) {
77 var serialized = _serialize(message); 77 var serialized = _serialize(message);
78 var result = _call(_id, serialized); 78 var result =
79 JS('var', @'ReceivePortSync.dispatchCall(#, #)', _id, serialized);
79 return _deserialize(result); 80 return _deserialize(result);
80 } 81 }
81 82
82 static _call(num id, var message) native @"""
83 return ReceivePortSync.dispatchCall(id, message);
84 """;
85
86 } 83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698