Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // TODO(vadimt): Consider reusing WebKit/Blink types, if this is possible. | |
|
epeterson
2013/06/13 03:24:28
Moved this up so that we can keep the comment with
| |
| 4 | 5 |
|
epeterson
2013/06/13 03:24:28
Also, there is no description for the location sch
not at google - send to devlin
2013/06/19 16:47:16
How about:
The <code>chrome.location</code> API a
epeterson
2013/06/20 23:07:40
Done.
| |
| 5 // TODO(vadimt): Consider reusing WebKit/Blink types, if this is possible. | |
| 6 namespace location { | 6 namespace location { |
| 7 // Coordinates part of the Location object. | 7 // Coordinates part of the Location object. |
| 8 dictionary Coordinates { | 8 dictionary Coordinates { |
| 9 // The geographic latitude specified in degrees. | 9 // The geographic latitude specified in degrees. |
| 10 double latitude; | 10 double latitude; |
| 11 | 11 |
| 12 // The geographic longitude specified in degrees. | 12 // The geographic longitude specified in degrees. |
| 13 double longitude; | 13 double longitude; |
| 14 | 14 |
| 15 // The height of the position, specified in meters above the [WGS84] | 15 // The height of the position, specified in meters above the [WGS84] |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 interface Events { | 86 interface Events { |
| 87 // Fired when a location change is detected. | 87 // Fired when a location change is detected. |
| 88 // |location| : An object containing matching events and new location. | 88 // |location| : An object containing matching events and new location. |
| 89 static void onLocationUpdate(Location location); | 89 static void onLocationUpdate(Location location); |
| 90 | 90 |
| 91 // Fired when detecting location in not possible. | 91 // Fired when detecting location in not possible. |
| 92 // |error| : Human-readable error description. | 92 // |error| : Human-readable error description. |
| 93 static void onLocationError(DOMString error); | 93 static void onLocationError(DOMString error); |
| 94 }; | 94 }; |
| 95 }; | 95 }; |
| OLD | NEW |