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

Side by Side Diff: samples/pop_pop_win/lib/src/html.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library pop_pop_win.html;
2
3 import 'dart:async';
4 import 'dart:html';
5
6 import 'package:bot/bot.dart';
7 import 'package:pop_pop_win/platform_target.dart';
8
9 import 'game.dart';
10
11 part 'html/high_score_view.dart';
12 part 'html/game_view.dart';
13 part 'html/game_storage.dart';
14 part 'html/game_manager.dart';
15
16 PlatformTarget _platformImpl;
17
18 void initPlatform(PlatformTarget value) {
19 assert(value != null);
20 assert(!value.initialized);
21 assert(_platformImpl == null);
22 _platformImpl = value;
23 _platformImpl.initialize();
24 }
25
26 PlatformTarget get targetPlatform {
27 if (_platformImpl == null) {
28 initPlatform(new PlatformTarget());
29 }
30 return _platformImpl;
31 }
OLDNEW
« no previous file with comments | « samples/pop_pop_win/lib/src/game_storage.dart ('k') | samples/pop_pop_win/lib/src/html/game_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698