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

Unified Diff: content/common/geolocation_service.mojom

Issue 841133002: Stop using [Client=...] feature of Mojom for GeolocationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/common/geolocation_service.mojom
diff --git a/content/common/geolocation_service.mojom b/content/common/geolocation_service.mojom
index 00d56400ba4639541a89737d5558992a27af403c..deea27181fd24d83abdb96775bccbe98a1f32c48 100644
--- a/content/common/geolocation_service.mojom
+++ b/content/common/geolocation_service.mojom
@@ -6,14 +6,14 @@ module content;
import "content/public/common/mojo_geoposition.mojom";
-// The Geolocation service provides updates on the device's location to its
-// client. By default, it provides updates with low accuracy, but
-// |SetHighAccuracy()| can be called to change this.
-[Client=GeolocationServiceClient]
+// The Geolocation service provides updates on the device's location. By
+// default, it provides updates with low accuracy, but |SetHighAccuracy()| may
+// be called to change this.
interface GeolocationService {
SetHighAccuracy(bool high_accuracy);
-};
-interface GeolocationServiceClient {
- OnLocationUpdate(MojoGeoposition geoposition);
+ // Position is reported once it changes or immediately if this is the first
+ // call to QueryNextPosition on this instance. Position updates may be
blundell 2015/01/09 07:37:26 Nit: What is the meaning of "immediately if this i
+ // throttled by the service. Overlapping calls to this method are supported.
+ QueryNextPosition() => (MojoGeoposition geoposition);
};

Powered by Google App Engine
This is Rietveld 408576698