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

Unified Diff: sky/sdk/example/fitness/lib/measurement.dart

Issue 1213603006: Initial fitness app (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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: sky/sdk/example/fitness/lib/measurement.dart
diff --git a/tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.cpp b/sky/sdk/example/fitness/lib/measurement.dart
similarity index 60%
copy from tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.cpp
copy to sky/sdk/example/fitness/lib/measurement.dart
index e0a200fed9540f685a11d0e83fbeb2bd48e344c6..cc1986542cb70b6bbfc5ebc496e073d54a29fde5 100644
--- a/tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.cpp
+++ b/sky/sdk/example/fitness/lib/measurement.dart
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ref_ptr_to_gc_managed_class.h"
-
-namespace blink {
-
-void HeapObject::trace(Visitor*) { }
+class Measurement {
+ final DateTime when;
+ final double weight;
+ Measurement({ this.when, this.weight });
}
+

Powered by Google App Engine
This is Rietveld 408576698