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: services/location/geocoder_service.js

Issue 985123002: Move geocoder code to location related path. This CL only moves files, no functional change. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « mojo/services/location/public/interfaces/geocoder.mojom ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!mojo mojo:js_content_handler 1 #!mojo mojo:js_content_handler
2 2
3 define("main", [ 3 define("main", [
4 "console", 4 "console",
5 "examples/js/maps/geocoder.mojom",
6 "mojo/public/js/core", 5 "mojo/public/js/core",
7 "mojo/public/js/unicode", 6 "mojo/public/js/unicode",
7 "mojo/services/location/public/interfaces/geocoder.mojom",
8 "mojo/services/location/public/interfaces/location.mojom",
8 "mojo/services/public/js/application", 9 "mojo/services/public/js/application",
9 "mojo/services/network/public/interfaces/network_service.mojom", 10 "mojo/services/network/public/interfaces/network_service.mojom",
10 "mojo/services/network/public/interfaces/url_loader.mojom", 11 "mojo/services/network/public/interfaces/url_loader.mojom",
11 "third_party/js/url", 12 "third_party/js/url",
12 ], function(console, geocoder, core, unicode, application, network, loader, url) { 13 ], function(console, core, unicode, geocoder, location, application, network,
14 loader, url) {
13 15
14 const Application = application.Application; 16 const Application = application.Application;
15 const Bounds = geocoder.Bounds; 17 const Bounds = geocoder.Bounds;
16 const Geocoder = geocoder.Geocoder; 18 const Geocoder = geocoder.Geocoder;
17 const Geometry = geocoder.Geometry; 19 const Geometry = geocoder.Geometry;
18 const Location = geocoder.Location; 20 const Location = location.Location;
19 const NetworkService = network.NetworkService; 21 const NetworkService = network.NetworkService;
20 const Result = geocoder.Result; 22 const Result = geocoder.Result;
21 const Status = geocoder.Status; 23 const Status = geocoder.Status;
22 const URLRequest = loader.URLRequest; 24 const URLRequest = loader.URLRequest;
23 const URL = url.URL; 25 const URL = url.URL;
24 26
25 var netService; 27 var netService;
26 28
27 Location.prototype.queryString = function() { 29 Location.prototype.queryString = function() {
28 // TBD: format floats to 6 decimal places 30 // TBD: format floats to 6 decimal places
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 121 }
120 122
121 acceptConnection(initiatorURL, serviceProvider) { 123 acceptConnection(initiatorURL, serviceProvider) {
122 serviceProvider.provideService(Geocoder, GeocoderImpl); 124 serviceProvider.provideService(Geocoder, GeocoderImpl);
123 } 125 }
124 } 126 }
125 127
126 return GeocoderService; 128 return GeocoderService;
127 }); 129 });
128 130
OLDNEW
« no previous file with comments | « mojo/services/location/public/interfaces/geocoder.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698