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

Unified Diff: client/dom/scripts/template_wrapping_dom.js

Issue 8873008: Added constructor for AudioContext for dartc and frog (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
Index: client/dom/scripts/template_wrapping_dom.js
diff --git a/client/dom/scripts/template_wrapping_dom.js b/client/dom/scripts/template_wrapping_dom.js
index 0780bca737b27c50d9325ea47cf71396abbdf1be..a5a2efb1192d12ab9dd3c5600e02b2bd4fe22880 100644
--- a/client/dom/scripts/template_wrapping_dom.js
+++ b/client/dom/scripts/template_wrapping_dom.js
@@ -49,6 +49,14 @@ function native__DOMWindowWrappingImplementation__get_localStorage(_this) {
// Native methods for factory providers.
+function native__AudioContextFactoryProvider_create() {
+ try {
+ return __dom_wrap(new AudioContext());
sra1 2011/12/08 06:19:16 See other comment. new webkitAudioContext()
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__FileReaderFactoryProvider_create() {
try {
return __dom_wrap(new FileReader());

Powered by Google App Engine
This is Rietveld 408576698