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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 990383002: Add MediaSource.supported, annotations for supported browsers, and a minimal test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/mediasource_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 735b712df4db14ac6f9b68283678c5c578d89e9c..871d49e4ac5ee10a59775c45a9f800d7776ae264 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -19995,6 +19995,8 @@ class MediaQueryListEvent extends Event {
@DocsEditable()
@DomName('MediaSource')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.IE, '11')
// https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#mediasource
@Experimental()
@Native("MediaSource")
@@ -20009,6 +20011,9 @@ class MediaSource extends EventTarget {
}
static MediaSource _create_1() => JS('MediaSource', 'new MediaSource()');
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => JS('bool', '!!(window.MediaSource)');
+
@DomName('MediaSource.activeSourceBuffers')
@DocsEditable()
final SourceBufferList activeSourceBuffers;
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/mediasource_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698