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

Unified Diff: client/dom/frog/dom_frog.dart

Issue 9235022: Fix for AudioContext in Frog (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/dom/src/frog_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/frog/dom_frog.dart
diff --git a/client/dom/frog/dom_frog.dart b/client/dom/frog/dom_frog.dart
index 66176cee6cd716b2b9c0e92a93c5674971843710..b2b438f8ba3ff628845c030d4ce4291211d65701 100644
--- a/client/dom/frog/dom_frog.dart
+++ b/client/dom/frog/dom_frog.dart
@@ -26400,7 +26400,10 @@ class _Collections {
class _AudioContextFactoryProvider {
- factory AudioContext() native '''return new AudioContext();''';
+ factory AudioContext() native '''
+ var constructor = window.AudioContext || window.webkitAudioContext;
+ return new constructor();
+''';
}
class _FileReaderFactoryProvider {
« no previous file with comments | « no previous file | client/dom/src/frog_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698