OLD | NEW |
1 #!mojo mojo:js_content_handler | 1 #!mojo mojo:js_content_handler |
2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 define("main", [ | 6 define("main", [ |
7 "console", | 7 "console", |
8 "mojo/public/js/core", | 8 "mojo/public/js/core", |
9 "mojo/public/js/unicode", | 9 "mojo/public/js/unicode", |
10 "mojo/services/location/interfaces/geocoder.mojom", | 10 "mojo/services/location/interfaces/geocoder.mojom", |
11 "mojo/services/location/interfaces/location.mojom", | 11 "mojo/services/location/interfaces/location.mojom", |
12 "mojo/services/public/js/application", | 12 "mojo/services/public/js/application", |
13 "mojo/services/network/public/interfaces/network_service.mojom", | 13 "mojo/services/network/interfaces/network_service.mojom", |
14 "mojo/services/network/public/interfaces/url_loader.mojom", | 14 "mojo/services/network/interfaces/url_loader.mojom", |
15 "third_party/js/url", | 15 "third_party/js/url", |
16 ], function(console, core, unicode, geocoder, location, application, network, | 16 ], function(console, core, unicode, geocoder, location, application, network, |
17 loader, url) { | 17 loader, url) { |
18 | 18 |
19 const Application = application.Application; | 19 const Application = application.Application; |
20 const Bounds = geocoder.Bounds; | 20 const Bounds = geocoder.Bounds; |
21 const Geocoder = geocoder.Geocoder; | 21 const Geocoder = geocoder.Geocoder; |
22 const Geometry = geocoder.Geometry; | 22 const Geometry = geocoder.Geometry; |
23 const Location = location.Location; | 23 const Location = location.Location; |
24 const NetworkService = network.NetworkService; | 24 const NetworkService = network.NetworkService; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 124 } |
125 | 125 |
126 acceptConnection(initiatorURL, serviceProvider) { | 126 acceptConnection(initiatorURL, serviceProvider) { |
127 serviceProvider.provideService(Geocoder, GeocoderImpl); | 127 serviceProvider.provideService(Geocoder, GeocoderImpl); |
128 } | 128 } |
129 } | 129 } |
130 | 130 |
131 return GeocoderService; | 131 return GeocoderService; |
132 }); | 132 }); |
133 | 133 |
OLD | NEW |