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

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

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 3 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 - unless you are editing documentation as per: 5 // DO NOT EDIT - unless you are editing documentation as per:
6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
7 // Auto-generated dart:html library. 7 // Auto-generated dart:html library.
8 8
9 /// The Dart HTML library. 9 /// The Dart HTML library.
10 /// 10 ///
11 /// For examples, see 11 /// For examples, see
12 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) 12 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples)
13 /// on Github. 13 /// on Github.
14 library dart.dom.html; 14 library dart.dom.html;
15 15
16 import 'dart:async'; 16 import 'dart:async';
17 import 'dart:collection'; 17 import 'dart:collection';
18 import 'dart:_collection-dev' hide Symbol, deprecated; 18 import 'dart:_collection-dev' hide Symbol, deprecated;
19 import 'dart:html_common'; 19 import 'dart:html_common';
20 import 'dart:indexed_db'; 20 import 'dart:indexed_db';
21 import 'dart:isolate'; 21 import 'dart:isolate';
22 import 'dart:json' as json; 22 import "dart:convert";
23 import 'dart:math'; 23 import 'dart:math';
24 import 'dart:typed_data'; 24 import 'dart:typed_data';
25 // Not actually used, but imported since dart:html can generate these objects. 25 // Not actually used, but imported since dart:html can generate these objects.
26 import 'dart:svg' as svg; 26 import 'dart:svg' as svg;
27 import 'dart:web_audio' as web_audio; 27 import 'dart:web_audio' as web_audio;
28 import 'dart:web_gl' as gl; 28 import 'dart:web_gl' as gl;
29 import 'dart:web_sql'; 29 import 'dart:web_sql';
30 import 'dart:_js_helper' show 30 import 'dart:_js_helper' show
31 convertDartClosureToJS, Creates, JavaScriptIndexingBehavior, 31 convertDartClosureToJS, Creates, JavaScriptIndexingBehavior,
32 JSName, Null, Returns, 32 JSName, Null, Returns,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return JS('int', r'window.$dart$isolate$counter++'); 109 return JS('int', r'window.$dart$isolate$counter++');
110 } 110 }
111 111
112 // Fast path to invoke JS send port. 112 // Fast path to invoke JS send port.
113 _callPortSync(int id, message) { 113 _callPortSync(int id, message) {
114 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 114 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
115 } 115 }
116 116
117 Future<SendPort> spawnDomFunction(Function f) => 117 Future<SendPort> spawnDomFunction(Function f) =>
118 new Future.value(IsolateNatives.spawnDomFunction(f)); 118 new Future.value(IsolateNatives.spawnDomFunction(f));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698