OLD | NEW |
1 #!mojo:js_content_handler | 1 #!mojo mojo:js_content_handler |
2 | 2 |
3 define("main", [ | 3 define("main", [ |
4 "mojo/public/js/bindings", | 4 "mojo/public/js/bindings", |
5 "mojo/services/public/js/application", | 5 "mojo/services/public/js/application", |
6 "services/js/test/pingpong_service.mojom" | 6 "services/js/test/pingpong_service.mojom" |
7 ], function(bindings, application, pingPongServiceMojom) { | 7 ], function(bindings, application, pingPongServiceMojom) { |
8 | 8 |
9 const ProxyBindings = bindings.ProxyBindings; | 9 const ProxyBindings = bindings.ProxyBindings; |
10 const StubBindings = bindings.StubBindings; | 10 const StubBindings = bindings.StubBindings; |
11 const Application = application.Application; | 11 const Application = application.Application; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 class PingPong extends Application { | 69 class PingPong extends Application { |
70 acceptConnection(url, serviceProvider) { | 70 acceptConnection(url, serviceProvider) { |
71 serviceProvider.provideService( | 71 serviceProvider.provideService( |
72 PingPongService, PingPongServiceImpl.bind(null, this)); | 72 PingPongService, PingPongServiceImpl.bind(null, this)); |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 return PingPong; | 76 return PingPong; |
77 }); | 77 }); |
OLD | NEW |