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

Side by Side Diff: samples/pop_pop_win/lib/src/canvas/new_game_element.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_canvas; 1 part of ppw_canvas;
2 2
3 class NewGameElement extends Thing { 3 class NewGameElement extends Thing {
4 final EventHandle<EventArgs> _clickedEvent = 4 final EventHandle<EventArgs> _clickedEvent =
5 new EventHandle<EventArgs>(); 5 new EventHandle<EventArgs>();
6 6
7 NewGameElement() : super(294, 92) { 7 NewGameElement() : super(294, 92) {
8 MouseManager.setClickable(this, true); 8 MouseManager.setClickable(this, true);
9 MouseManager.getClickStream(this).listen((args) => 9 MouseManager.getClickStream(this).listen((args) =>
10 _clickedEvent.add(EventArgs.empty)); 10 _clickedEvent.add(EventArgs.empty));
(...skipping 11 matching lines...) Expand all
22 GameElement get _gameElement => (parent as CanvasThing).parent; 22 GameElement get _gameElement => (parent as CanvasThing).parent;
23 23
24 TextureData get _textureData => _gameElement._textureData; 24 TextureData get _textureData => _gameElement._textureData;
25 25
26 Game get _game => _gameElement._game; 26 Game get _game => _gameElement._game;
27 27
28 void _mouseDirectlyOver(args) { 28 void _mouseDirectlyOver(args) {
29 invalidateDraw(); 29 invalidateDraw();
30 } 30 }
31 } 31 }
OLDNEW
« no previous file with comments | « samples/pop_pop_win/lib/src/canvas/game_root.dart ('k') | samples/pop_pop_win/lib/src/canvas/score_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698