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

Side by Side Diff: examples/js/share_echo_target.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/share_echo.js ('k') | examples/js/users-guide.md » ('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 sharing services via application ServiceProviders. 2 // Demonstrate sharing services via application ServiceProviders.
3 // This application is launched by share_echo.js. It both provides 3 // This application is launched by share_echo.js. It both provides
4 // and requests an EchoService implementation. 4 // and requests an EchoService implementation.
5 // 5 //
6 define("main", [ 6 define("main", [
7 "console", 7 "console",
8 "mojo/services/public/js/application", 8 "mojo/services/public/js/application",
9 "examples/echo/echo_service.mojom", 9 "examples/echo/echo_service.mojom",
10 ], function(console, application, echo) { 10 ], function(console, application, echo) {
11 11
(...skipping 15 matching lines...) Expand all
27 var echoService = shareEchoSP.requestService(EchoService); 27 var echoService = shareEchoSP.requestService(EchoService);
28 echoService.echoString("ShareEchoTarget").then(function(response) { 28 echoService.echoString("ShareEchoTarget").then(function(response) {
29 console.log(response.value); 29 console.log(response.value);
30 }); 30 });
31 shareEchoSP.provideService(EchoService, EchoServiceImpl); 31 shareEchoSP.provideService(EchoService, EchoServiceImpl);
32 } 32 }
33 } 33 }
34 34
35 return ShareEchoTarget; 35 return ShareEchoTarget;
36 }); 36 });
OLDNEW
« no previous file with comments | « examples/js/share_echo.js ('k') | examples/js/users-guide.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698