Index: content/common/geolocation_service.mojom |
diff --git a/content/common/geolocation_service.mojom b/content/common/geolocation_service.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2ed0a0eec1370a0d7f9421e65687ba45932fe279 |
--- /dev/null |
+++ b/content/common/geolocation_service.mojom |
@@ -0,0 +1,23 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+import "content/public/common/mojo_geoposition.mojom" |
+ |
+module content { |
+ |
+// The Geolocation service provides updates on the device's location to its |
+// client. It starts providing updates once |StartUpdating()| is called and |
+// continues until the connection is closed. |StartUpdating()| can be called |
+// multiple times to change the accuracy with which the location is being |
+// tracked. |
+[Client=GeolocationServiceClient] |
+interface GeolocationService { |
+ StartUpdating(bool high_accuracy); |
+}; |
Tom Sepez
2014/10/21 18:10:06
Nit: are you sure you don't want to spec a StopUpd
blundell
2014/10/21 20:17:41
Originally I wanted the client connecting to the s
Aaron Boodman
2014/10/22 00:25:38
Drive-by: I agree that dropping the pipe is more i
|
+ |
+interface GeolocationServiceClient { |
+ OnLocationUpdate(MojoGeoposition geoposition); |
+}; |
+ |
+} |