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

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

Issue 803173009: Mojo JS Bindings: Eliminate foo$ Stub and Proxy class members (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync Created 5 years, 11 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 | « services/js/test/pingpong.js ('k') | no next file » | 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="/mojo/public/sky/core.sky" as="core" /> 1 <import src="/mojo/public/sky/core.sky" as="core" />
2 <import src="/mojo/public/sky/connection.sky" as="connection" /> 2 <import src="/mojo/public/sky/connection.sky" as="connection" />
3 <script> 3 <script>
4 function wrapHandle(handle, service, client) { 4 function wrapHandle(handle, service, client) {
5 var clientClass = client && service.client.delegatingStubClass; 5 return connection.bindProxyHandle(handle, service.client, service);
6 var serviceConnection = new connection.Connection(
7 handle, clientClass, service.proxyClass);
8 if (serviceConnection.local)
9 serviceConnection.local.delegate$ = client;
10 serviceConnection.remote.connection$ = serviceConnection;
11 return serviceConnection.remote;
12 } 6 }
13 7
14 function connectToService(url, service, client) { 8 function connectToService(url, service, client) {
15 var handle = internals.connectToService(url, service.name); 9 var handle = internals.connectToService(url, service.name);
16 return wrapHandle(handle, service, client); 10 return wrapHandle(handle, service, client);
17 } 11 }
18 12
19 module.exports = { 13 module.exports = {
20 connectToService: connectToService, 14 connectToService: connectToService,
21 wrapHandle: wrapHandle, 15 wrapHandle: wrapHandle,
22 }; 16 };
23 </script> 17 </script>
OLDNEW
« no previous file with comments | « services/js/test/pingpong.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698