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 // A location fix representing a geographic location (latitude, longitude, time) | 8 // A location fix representing a geographic location (latitude, longitude, time) |
8 // and associated information like altitude, bearing, etc. | 9 // and associated information like altitude, bearing, etc. |
9 // | 10 // |
10 // This is based on | 11 // This is based on |
11 // http://developer.android.com/reference/android/location/Location.html . | 12 // http://developer.android.com/reference/android/location/Location.html . |
12 struct Location { | 13 struct Location { |
13 // UTC time of this fix, in milliseconds since January 1, 1970. | 14 // UTC time of this fix, in milliseconds since January 1, 1970. |
14 uint64 time; | 15 uint64 time; |
(...skipping 20 matching lines...) Expand all Loading... |
35 float speed; | 36 float speed; |
36 | 37 |
37 // In degrees. | 38 // In degrees. |
38 bool has_bearing = false; | 39 bool has_bearing = false; |
39 float bearing; | 40 float bearing; |
40 | 41 |
41 // Estimated accuracy of this fix in meters. | 42 // Estimated accuracy of this fix in meters. |
42 bool has_accuracy = false; | 43 bool has_accuracy = false; |
43 float accuracy; | 44 float accuracy; |
44 }; | 45 }; |
OLD | NEW |