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

Unified Diff: client/dom/src/frog_FactoryProviders.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 | « client/dom/frog/dom_frog.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/src/frog_FactoryProviders.dart
diff --git a/client/dom/src/frog_FactoryProviders.dart b/client/dom/src/frog_FactoryProviders.dart
index 1e74b2422900e3e56a59639e50d9748428584e4a..a9d41af1d3d83afc24def841ce0e72a3a5294d8c 100644
--- a/client/dom/src/frog_FactoryProviders.dart
+++ b/client/dom/src/frog_FactoryProviders.dart
@@ -8,7 +8,10 @@
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 | « client/dom/frog/dom_frog.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698