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

Unified Diff: mojo/services/location/public/interfaces/geocoder.mojom

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 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
Index: mojo/services/location/public/interfaces/geocoder.mojom
diff --git a/mojo/services/location/public/interfaces/geocoder.mojom b/mojo/services/location/public/interfaces/geocoder.mojom
deleted file mode 100644
index b8d18b530ccf9270a7cd0fa974ff4101887df34b..0000000000000000000000000000000000000000
--- a/mojo/services/location/public/interfaces/geocoder.mojom
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// All of the types that follow are simple mappings of the types defined by the
-// "Google Maps JavaScript API v3" defined here:
-// https://developers.google.com/maps/documentation/javascript/geocoding
-
-[DartPackage="mojo_services"]
-module mojo;
-
-import "location/public/interfaces/location.mojom";
-
-struct LocationType {
- const string ROOFTOP = "ROOFTOP";
- const string RANGE_INTERPOLATED = "RANGE_INTERPOLATED";
- const string GEOMETRIC_CENTER = "GEOMETRIC_CENTER";
- const string APPROXIMATE = "APPROXIMATE";
-};
-
-struct Bounds {
- Location northeast;
- Location southwest;
-};
-
-struct ComponentRestrictions {
- string? administrative_area;
- string? country;
- string? locality;
- string? postal_code;
- string? route;
-};
-
-struct Options {
- ComponentRestrictions? restrictions;
- Location? location;
- string? region;
-};
-
-struct Geometry {
- Location location;
- LocationType location_type;
- Bounds viewport;
- Bounds? bounds;
-};
-
-struct Result {
- bool partial_match;
- Geometry geometry;
- string formatted_address;
- array<string> types;
- // TBD address_components
-};
-
-struct Status {
- const string OK = "OK";
- const string ZERO_RESULTS = "ZERO_RESULTS";
- const string OVER_QUERY_LIMIT = "OVER_QUERY_LIMIT";
- const string REQUEST_DENIED = "REQUEST_DENIED";
- const string INVALID_REQUEST = "INVALID_REQUEST";
-};
-
-interface Geocoder {
- AddressToLocation(string address, Options? options) => (string status, array<Result>? results);
- LocationToAddress(Location location, Options? options) => (string status, array<Result>? results);
-};
« no previous file with comments | « mojo/services/location/public/interfaces/BUILD.gn ('k') | mojo/services/location/public/interfaces/location.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698