OLD | NEW |
1 #!mojo:js_content_handler | 1 #!mojo mojo:js_content_handler |
2 | 2 |
3 define("main", [ | 3 define("main", [ |
4 "mojo/services/public/js/application", | 4 "mojo/services/public/js/application", |
5 "services/js/test/pingpong_service.mojom", | 5 "services/js/test/pingpong_service.mojom", |
6 ], function(application, pingPongServiceMojom) { | 6 ], function(application, pingPongServiceMojom) { |
7 | 7 |
8 const Application = application.Application; | 8 const Application = application.Application; |
9 const PingPongService = pingPongServiceMojom.PingPongService; | 9 const PingPongService = pingPongServiceMojom.PingPongService; |
10 | 10 |
11 class PingPongServiceImpl { | 11 class PingPongServiceImpl { |
(...skipping 11 matching lines...) Expand all Loading... |
23 | 23 |
24 class PingPongTarget extends Application { | 24 class PingPongTarget extends Application { |
25 acceptConnection(url, serviceProvider) { | 25 acceptConnection(url, serviceProvider) { |
26 serviceProvider.provideService( | 26 serviceProvider.provideService( |
27 PingPongService, PingPongServiceImpl.bind(null, this)); | 27 PingPongService, PingPongServiceImpl.bind(null, this)); |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 return PingPongTarget; | 31 return PingPongTarget; |
32 }); | 32 }); |
OLD | NEW |