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

Side by Side Diff: src/site/samples/appcache/example/appcache.dart

Issue 30853002: Added several more HTML5 samples (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 2 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
OLDNEW
(Empty)
1 import "dart:html" as j;class n{static const o="Chrome";static const q="Firefo x";static const s="Internet Explorer";static const t="Opera";static const u=" Safari";final k;final minimumVersion;const n(this.k,[this.minimumVersion]);}cl ass v{const v();}class AB{final name;const AB(this.name);}class BB{const BB();} class CB{const CB();}class DB{var g;DB(this.g){g.onCached.listen(h);g.onChecking .listen(h);g.onDownloading.listen(h);g.onError.listen(l);g.onNoUpdate.listen(h); g.onObsolete.listen(h);g.onProgress.listen(h);g.onUpdateReady.listen((i)=>m());} m(){if(g.status==j.ApplicationCache.UPDATEREADY){g.swapCache();j.window.alert(' A new version of this site is available. Please reload.');}} h( i){print('Cache event: ${i}');} l( i){j.window.alert("Oh no! A cache error occurred: ${i}");prin t('Cache error: ${i}');}} main(){new DB(j.window.applicationCache);}
OLDNEW
« no previous file with comments | « src/site/samples/appcache/example/appcache.css ('k') | src/site/samples/appcache/example/appcache.mf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698