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

Side by Side Diff: samples/pop_pop_win/example/platform_app.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
« no previous file with comments | « samples/pop_pop_win/example/manifest.json ('k') | samples/pop_pop_win/lib/canvas.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library ppw_platform_web; 1 library ppw_platform_web;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 4
5 import 'package:poppopwin/platform_target.dart'; 5 import 'package:poppopwin/platform_target.dart';
6 import 'package:chrome_gen/gen/storage.dart'; 6 import 'package:chrome_gen/gen/storage.dart';
7 7
8 class PlatformApp extends PlatformTarget { 8 class PlatformApp extends PlatformTarget {
9 final StreamController _aboutController = new StreamController(sync: true); 9 final StreamController _aboutController = new StreamController(sync: true);
10 bool _about = false; 10 bool _about = false;
(...skipping 19 matching lines...) Expand all
30 30
31 void toggleAbout([bool value]) { 31 void toggleAbout([bool value]) {
32 assert(_about != null); 32 assert(_about != null);
33 if(value == null) { 33 if(value == null) {
34 value = !_about; 34 value = !_about;
35 } 35 }
36 _about = value; 36 _about = value;
37 _aboutController.add(null); 37 _aboutController.add(null);
38 } 38 }
39 } 39 }
OLDNEW
« no previous file with comments | « samples/pop_pop_win/example/manifest.json ('k') | samples/pop_pop_win/lib/canvas.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698