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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/appcache/example/appcache.dart
diff --git a/src/site/samples/appcache/example/appcache.dart b/src/site/samples/appcache/example/appcache.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f74405a7e5190b9b6b087fb82fe119d5104ee8a1
--- /dev/null
+++ b/src/site/samples/appcache/example/appcache.dart
@@ -0,0 +1 @@
+import "dart:html" as j;class n{static const o="Chrome";static const q="Firefox";static const s="Internet Explorer";static const t="Opera";static const u="Safari";final k;final minimumVersion;const n(this.k,[this.minimumVersion]);}class 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}");print('Cache error: ${i}');}} main(){new DB(j.window.applicationCache);}
« 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