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

Unified Diff: samples/pop_pop_win/lib/src/html/high_score_view.dart

Issue 242443008: samples/pop_pop_win: now based on StageXL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tiny nit Created 6 years, 8 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 | « samples/pop_pop_win/lib/src/html/game_view.dart ('k') | samples/pop_pop_win/lib/src/platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/pop_pop_win/lib/src/html/high_score_view.dart
diff --git a/samples/pop_pop_win/lib/src/html/high_score_view.dart b/samples/pop_pop_win/lib/src/html/high_score_view.dart
deleted file mode 100644
index 174c40d5b25ddd6900abe9de4624c11e07c4798d..0000000000000000000000000000000000000000
--- a/samples/pop_pop_win/lib/src/html/high_score_view.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-part of pop_pop_win.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 = '';
- }
- });
- }
-}
« no previous file with comments | « samples/pop_pop_win/lib/src/html/game_view.dart ('k') | samples/pop_pop_win/lib/src/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698