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

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: abarth cr feedback 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
« no previous file with comments | « sky/sdk/example/fitness/lib/main.dart ('k') | sky/sdk/example/fitness/lib/settings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/fitness/lib/measurement.dart
diff --git a/tools/clang/blink_gc_plugin/tests/stack_allocated.cpp b/sky/sdk/example/fitness/lib/measurement.dart
similarity index 60%
copy from tools/clang/blink_gc_plugin/tests/stack_allocated.cpp
copy to sky/sdk/example/fitness/lib/measurement.dart
index 450b3b50de8343cfbfad06b3b4e0ebecb2edb65b..cc1986542cb70b6bbfc5ebc496e073d54a29fde5 100644
--- a/tools/clang/blink_gc_plugin/tests/stack_allocated.cpp
+++ b/sky/sdk/example/fitness/lib/measurement.dart
@@ -2,12 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "stack_allocated.h"
+class Measurement {
+ final DateTime when;
+ final double weight;
-namespace blink {
-
-void HeapObject::trace(Visitor* visitor)
-{
+ Measurement({ this.when, this.weight });
}
-}
« no previous file with comments | « sky/sdk/example/fitness/lib/main.dart ('k') | sky/sdk/example/fitness/lib/settings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698