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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 11885031: Adding support checks for ApplicationCache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 85f5683ef36546d80a606f219d69663fbbaf16b0..9d7cbc2d45d0b5f70695389bbbd7c956a579ebe1 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -381,6 +381,10 @@ class AppletElement extends _Element_Merged {
/// @domName DOMApplicationCache
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.FIREFOX)
+@SupportedBrowser(SupportedBrowser.IE, '10')
+@SupportedBrowser(SupportedBrowser.SAFARI)
class ApplicationCache extends EventTarget {
ApplicationCache.internal() : super.internal();
@@ -400,6 +404,9 @@ class ApplicationCache extends EventTarget {
static const EventStreamProvider<Event> updateReadyEvent = const EventStreamProvider<Event>('updateready');
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => true;
+
/// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
ApplicationCacheEvents get on =>
new ApplicationCacheEvents(this);

Powered by Google App Engine
This is Rietveld 408576698