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

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

Issue 10700103: Stop adding so many global functions in client/dart.js. (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
« no previous file with comments | « client/dart.js ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = _call(_id, serialized);
79 return _deserialize(result); 79 return _deserialize(result);
80 } 80 }
81 81
82 static _call(num id, var message) native @""" 82 static _call(num id, var message) native @"""
83 var deserialized = _deserialize(message); 83 return ReceivePortSync.dispatchCall(id, message);
84 var result = ReceivePortSync.map[id].callback(deserialized);
85 return _serialize(result);
86 """; 84 """;
87 85
88 } 86 }
OLDNEW
« no previous file with comments | « client/dart.js ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698