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

Unified Diff: samples/third_party/pop-pop-win/lib/src/canvas/game_audio.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 side-by-side diff with in-line comments
Download patch
Index: samples/third_party/pop-pop-win/lib/src/canvas/game_audio.dart
diff --git a/samples/third_party/pop-pop-win/lib/src/canvas/game_audio.dart b/samples/third_party/pop-pop-win/lib/src/canvas/game_audio.dart
deleted file mode 100644
index b3457a197a38d41c4c3026504a29f4609ae7d876..0000000000000000000000000000000000000000
--- a/samples/third_party/pop-pop-win/lib/src/canvas/game_audio.dart
+++ /dev/null
@@ -1,24 +0,0 @@
-part of ppw_canvas;
-
-class GameAudio {
- static const String WIN = 'win', CLICK = 'click', POP = 'Pop', FLAG = 'flag',
- UNFLAG = 'unflag', BOMB = 'Bomb', THROW_DART = 'throw';
-
- static final EventHandle<String> _audioEventHandle = new EventHandle<String>();
-
- static Stream<String> get audioEvent => _audioEventHandle.stream;
-
- static void win() => _audioEventHandle.add(WIN);
-
- static void click() => _audioEventHandle.add(CLICK);
-
- static void pop() => _audioEventHandle.add(POP);
-
- static void flag() => _audioEventHandle.add(FLAG);
-
- static void unflag() => _audioEventHandle.add(UNFLAG);
-
- static void bomb() => _audioEventHandle.add(BOMB);
-
- static void throwDart() => _audioEventHandle.add(THROW_DART);
-}

Powered by Google App Engine
This is Rietveld 408576698