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 module content; | 5 module content; |
6 | 6 |
7 import "content/public/common/mojo_geoposition.mojom"; | 7 import "content/public/common/mojo_geoposition.mojom"; |
8 | 8 |
9 // The Geolocation service provides updates on the device's location to its | 9 // The Geolocation service provides updates on the device's location. By |
10 // client. By default, it provides updates with low accuracy, but | 10 // default, it provides updates with low accuracy, but |SetHighAccuracy()| may |
11 // |SetHighAccuracy()| can be called to change this. | 11 // be called to change this. |
12 [Client=GeolocationServiceClient] | |
13 interface GeolocationService { | 12 interface GeolocationService { |
14 SetHighAccuracy(bool high_accuracy); | 13 SetHighAccuracy(bool high_accuracy); |
14 | |
15 // Position is reported once it changes or immediately if this is the first | |
16 // call to QueryNextPosition on this instance. Position updates may be | |
blundell
2015/01/09 07:37:26
Nit: What is the meaning of "immediately if this i
| |
17 // throttled by the service. Overlapping calls to this method are supported. | |
18 QueryNextPosition() => (MojoGeoposition geoposition); | |
15 }; | 19 }; |
16 | |
17 interface GeolocationServiceClient { | |
18 OnLocationUpdate(MojoGeoposition geoposition); | |
19 }; | |
OLD | NEW |