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

Side by Side Diff: sky/examples/dart-mojo.sky

Issue 944733002: Sky should expose services provided to/by embedder (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | sky/framework/embedder.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!mojo mojo:sky_viewer 1 #!mojo mojo:sky_viewer
2 <sky> 2 <sky>
3 <import src="dart-library.sky" as="library" /> 3 <import src="dart-library.sky" as="library" />
4 <script> 4 <script>
5 import 'dart:async'; 5 import 'dart:async';
6 import '/mojo/public/dart/application.dart'; 6 import '/mojo/public/dart/application.dart';
7 import 'dart:mojo_bindings'; 7 import 'dart:mojo_bindings';
8 import 'dart:mojo_core'; 8 import 'dart:mojo_core';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 import 'dart:sky.internals' as internals; 10 import 'dart:sky.internals' as internals;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 _networkService.close(); 67 _networkService.close();
68 _urlLoaderProxy = null; 68 _urlLoaderProxy = null;
69 _networkService = null; 69 _networkService = null;
70 } 70 }
71 } 71 }
72 72
73 main() { 73 main() {
74 var messagePipe = new MojoMessagePipe(); 74 var messagePipe = new MojoMessagePipe();
75 var wget = new WGet(messagePipe.endpoints[1]); 75 var wget = new WGet(messagePipe.endpoints[1]);
76 wget.listen(); 76 wget.listen();
77 var shellProxy = new shell_mojom.ShellProxy.fromHandle(new MojoHandle(internal s.passShellProxyHandle())); 77 var shellProxy = new shell_mojom.ShellProxy.fromHandle(new MojoHandle(internal s.takeShellProxyHandle()));
78 wget.initializeFromShellProxy(shellProxy, ["mojo:wget", "http://www.google.com "], "mojo:wget"); 78 wget.initializeFromShellProxy(shellProxy, ["mojo:wget", "http://www.google.com "], "mojo:wget");
79 } 79 }
80 80
81 </script> 81 </script>
82 </sky> 82 </sky>
OLDNEW
« no previous file with comments | « no previous file | sky/framework/embedder.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698