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

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: 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 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 9ee6475037abf08d913fb9eb1cd16707d4de7020..675530e5dd71741e790e1975413d140e2af5cd8a 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/location.mojom.dart
@@ -27,6 +27,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