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

Side by Side Diff: sky/framework/shell.sky

Issue 875713003: Upgrade Sky's use of the JS bindings (Closed) Base URL: https://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 | « sky/framework/embedder.sky ('k') | sky/framework/xmlhttprequest.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 <import src="/gen/mojo/public/sky/core.sky" as="core" />
2 <import src="/gen/mojo/public/sky/connection.sky" as="connection" /> 1 <import src="/gen/mojo/public/sky/connection.sky" as="connection" />
3 <script> 2 <script>
4 function wrapHandle(handle, service, client) {
5 return connection.bindProxyHandle(handle, service.client, service);
6 }
7
8 function connectToService(url, service, client) { 3 function connectToService(url, service, client) {
9 var handle = internals.connectToService(url, service.name); 4 var handle = internals.connectToService(url, service.name);
10 return wrapHandle(handle, service, client); 5 return connection.bindHandleToProxy(handle, service);
11 } 6 }
12 7
13 module.exports = { 8 module.exports = {
14 connectToService: connectToService, 9 connectToService: connectToService,
15 wrapHandle: wrapHandle,
16 }; 10 };
17 </script> 11 </script>
OLDNEW
« no previous file with comments | « sky/framework/embedder.sky ('k') | sky/framework/xmlhttprequest.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698