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

Unified 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: Cleanup Created 4 years, 7 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: mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart
index e5cec0784447231995c8aa007628b98f481d3920..d18331ce8bcc43a0affcc7977834808f1970f0d4 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart
@@ -28,6 +28,22 @@ class Location extends bindings.Struct {
Location() : super(kVersions.last.size);
+ Location.init(
+ int this.time,
+ bool this.hasElapsedRealTimeNanos,
+ bool this.hasAltitude,
+ bool this.hasSpeed,
+ bool this.hasBearing,
+ bool this.hasAccuracy,
+ double this.speed,
+ int this.elapsedRealTimeNanos,
+ double this.latitude,
+ double this.longitude,
+ double this.altitude,
+ double this.bearing,
+ double this.accuracy
+ ) : super(kVersions.last.size);
+
static Location deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);

Powered by Google App Engine
This is Rietveld 408576698