OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library trydart.main; | 5 library trydart.main; |
6 | 6 |
7 import 'dart:html' show | 7 import 'dart:html' show |
8 HttpRequest, | 8 HttpRequest, |
9 LinkElement, | 9 LinkElement, |
10 querySelector, | 10 querySelector, |
11 window; | 11 window; |
12 | 12 |
13 import 'dart:isolate' show | 13 import 'dart:isolate' show |
14 Isolate, | 14 Isolate, |
15 ReceivePort, | 15 ReceivePort, |
16 SendPort; | 16 SendPort; |
17 | 17 |
18 import 'compilation.dart' show | 18 import 'compilation.dart' show |
19 compilerIsolate, | |
20 compilerPort, | 19 compilerPort, |
21 currentSource; | 20 currentSource; |
22 | 21 |
23 import 'samples.dart' show | 22 import 'samples.dart' show |
24 EXAMPLE_HELLO; | 23 EXAMPLE_HELLO; |
25 | 24 |
26 import 'ui.dart' show | 25 import 'ui.dart' show |
27 buildUI, | 26 buildUI, |
28 interaction, | 27 interaction, |
29 observer; | 28 observer; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 interaction.onMutation([], observer); | 76 interaction.onMutation([], observer); |
78 break; | 77 break; |
79 default: | 78 default: |
80 // TODO(ahe): Close [port]? | 79 // TODO(ahe): Close [port]? |
81 print('Unexpected message received: $message'); | 80 print('Unexpected message received: $message'); |
82 break; | 81 break; |
83 } | 82 } |
84 }); | 83 }); |
85 }); | 84 }); |
86 } | 85 } |
OLD | NEW |