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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 6 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 // WARNING: DO NOT EDIT. This file was generated by a program. 1 // WARNING: DO NOT EDIT. This file was generated by a program.
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py.
3 3
4 library location_mojom; 4 library location_mojom;
5 import 'package:mojo/bindings.dart' as bindings; 5 import 'package:mojo/bindings.dart' as bindings;
6 6
7 7
8 8
9 9
10 class Location extends bindings.Struct { 10 class Location extends bindings.Struct {
11 static const List<bindings.StructDataHeader> kVersions = const [ 11 static const List<bindings.StructDataHeader> kVersions = const [
12 const bindings.StructDataHeader(64, 0) 12 const bindings.StructDataHeader(64, 0)
13 ]; 13 ];
14 int time = 0; 14 int time = 0;
15 bool hasElapsedRealTimeNanos = false; 15 bool hasElapsedRealTimeNanos = false;
16 bool hasAltitude = false; 16 bool hasAltitude = false;
17 bool hasSpeed = false; 17 bool hasSpeed = false;
18 bool hasBearing = false; 18 bool hasBearing = false;
19 bool hasAccuracy = false; 19 bool hasAccuracy = false;
20 double speed = 0.0; 20 double speed = 0.0;
21 int elapsedRealTimeNanos = 0; 21 int elapsedRealTimeNanos = 0;
22 double latitude = 0.0; 22 double latitude = 0.0;
23 double longitude = 0.0; 23 double longitude = 0.0;
24 double altitude = 0.0; 24 double altitude = 0.0;
25 double bearing = 0.0; 25 double bearing = 0.0;
26 double accuracy = 0.0; 26 double accuracy = 0.0;
27 27
28 Location() : super(kVersions.last.size); 28 Location() : super(kVersions.last.size);
29 29
30 Location.init(
31 int this.time,
32 bool this.hasElapsedRealTimeNanos,
33 bool this.hasAltitude,
34 bool this.hasSpeed,
35 bool this.hasBearing,
36 bool this.hasAccuracy,
37 double this.speed,
38 int this.elapsedRealTimeNanos,
39 double this.latitude,
40 double this.longitude,
41 double this.altitude,
42 double this.bearing,
43 double this.accuracy
44 ) : super(kVersions.last.size);
45
30 static Location deserialize(bindings.Message message) { 46 static Location deserialize(bindings.Message message) {
31 var decoder = new bindings.Decoder(message); 47 var decoder = new bindings.Decoder(message);
32 var result = decode(decoder); 48 var result = decode(decoder);
33 if (decoder.excessHandles != null) { 49 if (decoder.excessHandles != null) {
34 decoder.excessHandles.forEach((h) => h.close()); 50 decoder.excessHandles.forEach((h) => h.close());
35 } 51 }
36 return result; 52 return result;
37 } 53 }
38 54
39 static Location decode(bindings.Decoder decoder0) { 55 static Location decode(bindings.Decoder decoder0) {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 map["longitude"] = longitude; 257 map["longitude"] = longitude;
242 map["altitude"] = altitude; 258 map["altitude"] = altitude;
243 map["bearing"] = bearing; 259 map["bearing"] = bearing;
244 map["accuracy"] = accuracy; 260 map["accuracy"] = accuracy;
245 return map; 261 return map;
246 } 262 }
247 } 263 }
248 264
249 265
250 266
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698