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

Side by Side Diff: examples/js/share_echo.js

Issue 821403003: Changes magic sequence to '!#mojo ' and strips 'mojo ' when building url (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: two more 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 | « examples/js/hello.js ('k') | examples/js/share_echo_target.js » ('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:js_content_handler 1 #!mojo mojo:js_content_handler
2 // Demonstrate using the ServiceProvider returned by the Shell 2 // Demonstrate using the ServiceProvider returned by the Shell
3 // connectToApplication() method to provide a service to the 3 // connectToApplication() method to provide a service to the
4 // target application and to request a service from the target 4 // target application and to request a service from the target
5 // application. To run this application with mojo_shell, set DIR 5 // application. To run this application with mojo_shell, set DIR
6 // to be the absolute path for this directory, then: 6 // to be the absolute path for this directory, then:
7 // mojo_shell "file://$DIR/share_echo.js file://$DIR/share_echo_target.js" 7 // mojo_shell "file://$DIR/share_echo.js file://$DIR/share_echo_target.js"
8 8
9 define("main", [ 9 define("main", [
10 "console", 10 "console",
11 "mojo/services/public/js/application", 11 "mojo/services/public/js/application",
(...skipping 24 matching lines...) Expand all
36 targetSP.provideService(EchoService, EchoServiceImpl); 36 targetSP.provideService(EchoService, EchoServiceImpl);
37 var echoService = targetSP.requestService(EchoService); 37 var echoService = targetSP.requestService(EchoService);
38 echoService.echoString("ShareEcho").then(function(response) { 38 echoService.echoString("ShareEcho").then(function(response) {
39 console.log(response.value); 39 console.log(response.value);
40 }); 40 });
41 } 41 }
42 } 42 }
43 43
44 return ShareEcho; 44 return ShareEcho;
45 }); 45 });
OLDNEW
« no previous file with comments | « examples/js/hello.js ('k') | examples/js/share_echo_target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698