OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // All of the types that follow are simple mappings of the types defined by the | 5 // All of the types that follow are simple mappings of the types defined by the |
6 // "Google Maps JavaScript API v3" defined here: | 6 // "Google Maps JavaScript API v3" defined here: |
7 // https://developers.google.com/maps/documentation/javascript/geocoding | 7 // https://developers.google.com/maps/documentation/javascript/geocoding |
8 | 8 |
| 9 [DartUriBase="mojo/services/location/public/interfaces"] |
9 module mojo; | 10 module mojo; |
10 | 11 |
11 import "location/public/interfaces/location.mojom"; | 12 import "location/public/interfaces/location.mojom"; |
12 | 13 |
13 struct LocationType { | 14 struct LocationType { |
14 const string ROOFTOP = "ROOFTOP"; | 15 const string ROOFTOP = "ROOFTOP"; |
15 const string RANGE_INTERPOLATED = "RANGE_INTERPOLATED"; | 16 const string RANGE_INTERPOLATED = "RANGE_INTERPOLATED"; |
16 const string GEOMETRIC_CENTER = "GEOMETRIC_CENTER"; | 17 const string GEOMETRIC_CENTER = "GEOMETRIC_CENTER"; |
17 const string APPROXIMATE = "APPROXIMATE"; | 18 const string APPROXIMATE = "APPROXIMATE"; |
18 }; | 19 }; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const string ZERO_RESULTS = "ZERO_RESULTS"; | 57 const string ZERO_RESULTS = "ZERO_RESULTS"; |
57 const string OVER_QUERY_LIMIT = "OVER_QUERY_LIMIT"; | 58 const string OVER_QUERY_LIMIT = "OVER_QUERY_LIMIT"; |
58 const string REQUEST_DENIED = "REQUEST_DENIED"; | 59 const string REQUEST_DENIED = "REQUEST_DENIED"; |
59 const string INVALID_REQUEST = "INVALID_REQUEST"; | 60 const string INVALID_REQUEST = "INVALID_REQUEST"; |
60 }; | 61 }; |
61 | 62 |
62 interface Geocoder { | 63 interface Geocoder { |
63 AddressToLocation(string address, Options? options) => (string status, array<R
esult>? results); | 64 AddressToLocation(string address, Options? options) => (string status, array<R
esult>? results); |
64 LocationToAddress(Location location, Options? options) => (string status, arra
y<Result>? results); | 65 LocationToAddress(Location location, Options? options) => (string status, arra
y<Result>? results); |
65 }; | 66 }; |
OLD | NEW |