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

Unified Diff: samples/third_party/pop-pop-win/lib/src/html/high_score_view.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed pkgbuild.status for rename Created 6 years, 9 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: samples/third_party/pop-pop-win/lib/src/html/high_score_view.dart
diff --git a/samples/third_party/pop-pop-win/lib/src/html/high_score_view.dart b/samples/third_party/pop-pop-win/lib/src/html/high_score_view.dart
deleted file mode 100644
index 43f3351847adcea68e3f4bebd35449fd57eadf2c..0000000000000000000000000000000000000000
--- a/samples/third_party/pop-pop-win/lib/src/html/high_score_view.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-part of ppw_html;
-
-class HighScoreView {
- final DivElement _div;
- final GameManager _manager;
-
- HighScoreView(this._manager, this._div) {
- assert(_div != null);
- assert(_manager != null);
-
- _manager.bestTimeUpdated.listen((args) => _update());
-
- _update();
- }
-
- void _update() {
- _manager.bestTimeMilliseconds
- .then((int milliseconds) {
- if(milliseconds != null) {
- final duration = new Duration(seconds: milliseconds ~/ 1000);
- _div.innerHtml = duration.toString();
- } else {
- _div.innerHtml = '';
- }
- });
- }
-}

Powered by Google App Engine
This is Rietveld 408576698