OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 [DartUriBase="mojo/services/location/public/interfaces"] |
5 module mojo; | 6 module mojo; |
6 | 7 |
7 import "location/public/interfaces/location.mojom"; | 8 import "location/public/interfaces/location.mojom"; |
8 | 9 |
9 // LocationService provides updates on the device's location. | 10 // LocationService provides updates on the device's location. |
10 // NOTE: This is specifically targetted towards use on Android by | 11 // NOTE: This is specifically targetted towards use on Android by |
11 // implementations which are thin wrappers over the Android Location API or the | 12 // implementations which are thin wrappers over the Android Location API or the |
12 // Google Play Services Location API. If we ever want to expand this to multiple | 13 // Google Play Services Location API. If we ever want to expand this to multiple |
13 // platforms or if it starts growing in complexity, we should strongly consider | 14 // platforms or if it starts growing in complexity, we should strongly consider |
14 // use of Chromium's geolocation code. | 15 // use of Chromium's geolocation code. |
(...skipping 10 matching lines...) Expand all Loading... |
25 PRIORITY_NO_POWER, | 26 PRIORITY_NO_POWER, |
26 }; | 27 }; |
27 | 28 |
28 // Returns a location when it changes, based on |priority|. If this is the | 29 // Returns a location when it changes, based on |priority|. If this is the |
29 // initial call, the last known location is returned immediately, if | 30 // initial call, the last known location is returned immediately, if |
30 // available. | 31 // available. |
31 // Returns NULL if the client requests a new location while a request is | 32 // Returns NULL if the client requests a new location while a request is |
32 // already in flight. | 33 // already in flight. |
33 GetNextLocation(UpdatePriority priority) => (Location? location); | 34 GetNextLocation(UpdatePriority priority) => (Location? location); |
34 }; | 35 }; |
OLD | NEW |