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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 16757005: Bringing dart:html's spawnDomFunction into sync between dart2js and dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 JS('void', r'window.$dart$isolate$counter = 1'); 58 JS('void', r'window.$dart$isolate$counter = 1');
59 } 59 }
60 return JS('int', r'window.$dart$isolate$counter++'); 60 return JS('int', r'window.$dart$isolate$counter++');
61 } 61 }
62 62
63 // Fast path to invoke JS send port. 63 // Fast path to invoke JS send port.
64 _callPortSync(int id, message) { 64 _callPortSync(int id, message) {
65 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 65 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
66 } 66 }
67 67
68 spawnDomFunction(Function f) => IsolateNatives.spawnDomFunction(f); 68 Future<SendPort> spawnDomFunction(Function f) =>
69 new Future.value(IsolateNatives.spawnDomFunction(f));
69 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 70 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
70 // for details. All rights reserved. Use of this source code is governed by a 71 // for details. All rights reserved. Use of this source code is governed by a
71 // BSD-style license that can be found in the LICENSE file. 72 // BSD-style license that can be found in the LICENSE file.
72 73
73 74
74 @DocsEditable 75 @DocsEditable
75 @DomName('AbstractWorker') 76 @DomName('AbstractWorker')
76 class AbstractWorker extends EventTarget native "AbstractWorker" { 77 class AbstractWorker extends EventTarget native "AbstractWorker" {
77 78
78 @DomName('AbstractWorker.errorEvent') 79 @DomName('AbstractWorker.errorEvent')
(...skipping 29807 matching lines...) Expand 10 before | Expand all | Expand 10 after
29886 _position = nextPosition; 29887 _position = nextPosition;
29887 return true; 29888 return true;
29888 } 29889 }
29889 _current = null; 29890 _current = null;
29890 _position = _array.length; 29891 _position = _array.length;
29891 return false; 29892 return false;
29892 } 29893 }
29893 29894
29894 T get current => _current; 29895 T get current => _current;
29895 } 29896 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698