Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: chrome/common/extensions/api/location.idl

Issue 19763008: Adding dev documentation for chrome.location (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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. 4 // TODO(vadimt): Consider reusing WebKit/Blink types, if this is possible.
5 5
6 // The <code>chrome.location</code> API augments the events from the 6 // Use the <code>chrome.location</code> API to retrieve geographical location of
7 // <a href="http://dev.w3.org/geo/api/spec-source.html">HTML Geolocation API</a> 7 // the hosting machine.
not at google - send to devlin 2013/07/27 01:51:49 i preferred the old description
vadimt 2013/07/27 02:08:55 That was a pretty head-scratchy description for th
Jeffrey Yasskin 2013/07/27 03:00:29 Can we combine them? I agree that your new descrip
not at google - send to devlin 2013/07/29 14:45:12 Yes exactly. This was going to be my next comment.
vadimt 2013/07/30 01:58:41 Done. Probably, a similar comment should be done f
8 // to be event page compatible.
9 namespace location { 8 namespace location {
10 // Coordinates part of the Location object. 9 // Coordinates part of the Location object.
11 dictionary Coordinates { 10 dictionary Coordinates {
12 // The geographic latitude specified in degrees. 11 // The geographic latitude specified in degrees.
13 double latitude; 12 double latitude;
14 13
15 // The geographic longitude specified in degrees. 14 // The geographic longitude specified in degrees.
16 double longitude; 15 double longitude;
17 16
18 // The height of the position, specified in meters above the [WGS84] 17 // The height of the position, specified in meters above the [WGS84]
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 interface Events { 88 interface Events {
90 // Fired when a location change is detected. 89 // Fired when a location change is detected.
91 // |location| : An object containing matching events and new location. 90 // |location| : An object containing matching events and new location.
92 static void onLocationUpdate(Location location); 91 static void onLocationUpdate(Location location);
93 92
94 // Fired when detecting location in not possible. 93 // Fired when detecting location in not possible.
95 // |error| : Human-readable error description. 94 // |error| : Human-readable error description.
96 static void onLocationError(DOMString error); 95 static void onLocationError(DOMString error);
97 }; 96 };
98 }; 97 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698