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

Side by Side Diff: mojo/services/location/public/interfaces/location_service.mojom

Issue 1071693003: Uses mojom module names as Dart's package: import URI (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 4
5 [DartUriBase="mojo/services/location/public/interfaces"]
5 module mojo; 6 module mojo;
6 7
7 import "location/public/interfaces/location.mojom"; 8 import "location/public/interfaces/location.mojom";
8 9
9 // LocationService provides updates on the device's location. 10 // LocationService provides updates on the device's location.
10 // NOTE: This is specifically targetted towards use on Android by 11 // NOTE: This is specifically targetted towards use on Android by
11 // implementations which are thin wrappers over the Android Location API or the 12 // implementations which are thin wrappers over the Android Location API or the
12 // Google Play Services Location API. If we ever want to expand this to multiple 13 // Google Play Services Location API. If we ever want to expand this to multiple
13 // platforms or if it starts growing in complexity, we should strongly consider 14 // platforms or if it starts growing in complexity, we should strongly consider
14 // use of Chromium's geolocation code. 15 // use of Chromium's geolocation code.
(...skipping 10 matching lines...) Expand all
25 PRIORITY_NO_POWER, 26 PRIORITY_NO_POWER,
26 }; 27 };
27 28
28 // Returns a location when it changes, based on |priority|. If this is the 29 // Returns a location when it changes, based on |priority|. If this is the
29 // initial call, the last known location is returned immediately, if 30 // initial call, the last known location is returned immediately, if
30 // available. 31 // available.
31 // Returns NULL if the client requests a new location while a request is 32 // Returns NULL if the client requests a new location while a request is
32 // already in flight. 33 // already in flight.
33 GetNextLocation(UpdatePriority priority) => (Location? location); 34 GetNextLocation(UpdatePriority priority) => (Location? location);
34 }; 35 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698