OLD | NEW |
1 <sky> | 1 <sky> |
2 | 2 |
3 <iframe></iframe> | 3 <iframe></iframe> |
4 | 4 |
5 <script> | 5 <script> |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import 'dart:sky'; | 7 import 'dart:sky'; |
8 import 'dart:sky.internals' as internals; | 8 import 'dart:sky.internals' as internals; |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 | 10 |
11 import 'package:mojo/public/dart/application.dart'; | 11 import 'package:mojo/application.dart'; |
12 import 'package:mojo/public/dart/bindings.dart'; | 12 import 'package:mojo/bindings.dart'; |
13 import 'package:mojo/public/dart/core.dart'; | 13 import 'package:mojo/core.dart'; |
14 import 'package:mojom/mojo/shell.mojom.dart' as shell_mojom; | 14 import 'package:mojom/mojo/shell.mojom.dart' as shell_mojom; |
15 import 'package:mojom/mojo/input_events.mojom.dart' as input_events; | 15 import 'package:mojom/mojo/input_events.mojom.dart' as input_events; |
16 import 'package:mojom/mojo/view_manager.mojom.dart' as view_manager; | 16 import 'package:mojom/mojo/view_manager.mojom.dart' as view_manager; |
17 | 17 |
18 // This include is a hack which only works with sky_server. For this to work | 18 // This include is a hack which only works with sky_server. For this to work |
19 // in the sky_sdk, this echo_service would need to make its own dart package. | 19 // in the sky_sdk, this echo_service would need to make its own dart package. |
20 import '/gen/services/js/test/echo_service.mojom.dart' as echo_service_mojom; | 20 import '/gen/services/js/test/echo_service.mojom.dart' as echo_service_mojom; |
21 | 21 |
22 class IFrameEmbed extends Application { | 22 class IFrameEmbed extends Application { |
23 IFrameEmbed.fromHandle(MojoHandle handle) : super.fromHandle(handle); | 23 IFrameEmbed.fromHandle(MojoHandle handle) : super.fromHandle(handle); |
(...skipping 25 matching lines...) Expand all Loading... |
49 | 49 |
50 main() { | 50 main() { |
51 var messagePipe = new MojoMessagePipe(); | 51 var messagePipe = new MojoMessagePipe(); |
52 var app = new IFrameEmbed(messagePipe.endpoints[1]); | 52 var app = new IFrameEmbed(messagePipe.endpoints[1]); |
53 var shellProxy = new shell_mojom.ShellProxy.fromHandle( | 53 var shellProxy = new shell_mojom.ShellProxy.fromHandle( |
54 new MojoHandle(internals.takeShellProxyHandle())); | 54 new MojoHandle(internals.takeShellProxyHandle())); |
55 app.initializeFromShellProxy(shellProxy, [], ""); | 55 app.initializeFromShellProxy(shellProxy, [], ""); |
56 } | 56 } |
57 </script> | 57 </script> |
58 </sky> | 58 </sky> |
OLD | NEW |