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 import "content/public/common/mojo_geoposition.mojom" | 5 import "content/public/common/mojo_geoposition.mojom"; |
6 | 6 |
7 module content { | 7 module content { |
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 to its |
10 // client. By default, it provides updates with low accuracy, but | 10 // client. By default, it provides updates with low accuracy, but |
11 // |SetHighAccuracy()| can be called to change this. | 11 // |SetHighAccuracy()| can be called to change this. |
12 [Client=GeolocationServiceClient] | 12 [Client=GeolocationServiceClient] |
13 interface GeolocationService { | 13 interface GeolocationService { |
14 SetHighAccuracy(bool high_accuracy); | 14 SetHighAccuracy(bool high_accuracy); |
15 }; | 15 }; |
16 | 16 |
17 interface GeolocationServiceClient { | 17 interface GeolocationServiceClient { |
18 OnLocationUpdate(MojoGeoposition geoposition); | 18 OnLocationUpdate(MojoGeoposition geoposition); |
19 }; | 19 }; |
20 | 20 |
21 } | 21 } |
OLD | NEW |