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

Side by Side Diff: samples/pop_pop_win/lib/src/html/game_storage.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of ppw_html; 1 part of ppw_html;
2 2
3 class GameStorage { 3 class GameStorage {
4 static const _gameCountKey = 'gameCount'; 4 static const _gameCountKey = 'gameCount';
5 final EventHandle _bestTimeUpdated = new EventHandle(); 5 final EventHandle _bestTimeUpdated = new EventHandle();
6 final Map<String, String> _cache = new Map<String, String>(); 6 final Map<String, String> _cache = new Map<String, String>();
7 7
8 Future<int> get gameCount => _getIntValue(_gameCountKey); 8 Future<int> get gameCount => _getIntValue(_gameCountKey);
9 9
10 Stream get bestTimeUpdated => _bestTimeUpdated.stream; 10 Stream get bestTimeUpdated => _bestTimeUpdated.stream;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 static int _parseValue(String value, int defaultValue) { 79 static int _parseValue(String value, int defaultValue) {
80 if(value == null) { 80 if(value == null) {
81 return defaultValue; 81 return defaultValue;
82 } else { 82 } else {
83 return int.parse(value); 83 return int.parse(value);
84 } 84 }
85 } 85 }
86 86
87 } 87 }
OLDNEW
« no previous file with comments | « samples/pop_pop_win/lib/src/html/game_manager.dart ('k') | samples/pop_pop_win/lib/src/html/game_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698