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

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: improve comments 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
« no previous file with comments | « content/browser/geolocation/geolocation_service_impl.cc ('k') | content/renderer/geolocation_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/geolocation_service.mojom
diff --git a/content/common/geolocation_service.mojom b/content/common/geolocation_service.mojom
index 00d56400ba4639541a89737d5558992a27af403c..6ec5a8550c105eefc8bec21df4fc23fa7d717021 100644
--- a/content/common/geolocation_service.mojom
+++ b/content/common/geolocation_service.mojom
@@ -6,14 +6,15 @@ 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 (to report the initial
+ // position) if this is the first call to QueryNextPosition on this instance.
+ // Position updates may be throttled by the service. Overlapping calls to
+ // this method are supported.
+ QueryNextPosition() => (MojoGeoposition geoposition);
};
« no previous file with comments | « content/browser/geolocation/geolocation_service_impl.cc ('k') | content/renderer/geolocation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698