| 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 blink.mojom; | 5 module device.mojom; |
| 6 | 6 |
| 7 // A Geoposition represents a position fix. It was originally derived from: | 7 // A Geoposition represents a position fix. It was originally derived from: |
| 8 // http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h | 8 // http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h |
| 9 // TODO(blundell): Investigate killing content::Geoposition in favor of using | 9 // TODO(blundell): Investigate killing content::Geoposition in favor of using |
| 10 // this struct everywhere. | 10 // this struct everywhere. |
| 11 struct Geoposition { | 11 struct Geoposition { |
| 12 // These values follow the W3C geolocation specification and can be returned | 12 // These values follow the W3C geolocation specification and can be returned |
| 13 // to JavaScript without the need for a conversion. | 13 // to JavaScript without the need for a conversion. |
| 14 enum ErrorCode { | 14 enum ErrorCode { |
| 15 NONE = 0, // Chrome addition. | 15 NONE = 0, // Chrome addition. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // be called to change this. | 58 // be called to change this. |
| 59 interface GeolocationService { | 59 interface GeolocationService { |
| 60 SetHighAccuracy(bool high_accuracy); | 60 SetHighAccuracy(bool high_accuracy); |
| 61 | 61 |
| 62 // Position is reported once it changes or immediately (to report the initial | 62 // Position is reported once it changes or immediately (to report the initial |
| 63 // position) if this is the first call to QueryNextPosition on this instance. | 63 // position) if this is the first call to QueryNextPosition on this instance. |
| 64 // Position updates may be throttled by the service. Overlapping calls to | 64 // Position updates may be throttled by the service. Overlapping calls to |
| 65 // this method are prohibited and will be treated as a connection error. | 65 // this method are prohibited and will be treated as a connection error. |
| 66 QueryNextPosition() => (Geoposition geoposition); | 66 QueryNextPosition() => (Geoposition geoposition); |
| 67 }; | 67 }; |
| OLD | NEW |