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

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

Powered by Google App Engine
This is Rietveld 408576698