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

Unified Diff: examples/location/geocoder_demo.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/js/maps/geocoder_service.js ('k') | mojo/services/location/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/location/geocoder_demo.js
diff --git a/examples/js/maps/demo.js b/examples/location/geocoder_demo.js
similarity index 85%
rename from examples/js/maps/demo.js
rename to examples/location/geocoder_demo.js
index aa6e783c6314a5e9219a40132ce1ec831bf59f1c..5442be4604259dc827df2be5419bef92b65b35ac 100644
--- a/examples/js/maps/demo.js
+++ b/examples/location/geocoder_demo.js
@@ -7,17 +7,18 @@
define("main", [
"console",
- "examples/js/maps/geocoder.mojom",
"mojo/public/js/core",
"mojo/public/js/unicode",
+ "mojo/services/location/public/interfaces/geocoder.mojom",
+ "mojo/services/location/public/interfaces/location.mojom",
"mojo/services/public/js/application",
"third_party/js/url",
-], function(console, geocoder, core, unicode, application, url) {
+], function(console, core, unicode, geocoder, location, application, url) {
const Application = application.Application;
const Geocoder = geocoder.Geocoder;
const Result = geocoder.Result;
- const Location = geocoder.Location;
+ const Location = location.Location;
const Status = geocoder.Status;
const Options = geocoder.Options;
const URL = url.URL;
@@ -68,7 +69,9 @@ define("main", [
class Demo extends Application {
initialize() {
- var geocoderURL = new URL(this.url).resolve("geocoder_service.js");
+ // TODO(alhaad): See if there is a better way to do this.
+ var geocoderURL = new URL(this.url).resolve(
+ "../../services/location/geocoder_service.js");
geocoderService = this.shell.connectToService(geocoderURL, Geocoder);
demoAddressToLocation();
}
« no previous file with comments | « examples/js/maps/geocoder_service.js ('k') | mojo/services/location/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698