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

Unified Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 11719003: Nuke custom factory providers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebaselining 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
index b45a5fac2a83f982079d1d868d27bb39d28b199f..cc6faf77a7c4e53ab57c4315a01d87b8ad7086e8 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -151,8 +151,6 @@ class AudioContext extends EventTarget native "*AudioContext" {
///@docsEditable true
factory AudioContext() => AudioContext._create();
- static AudioContext _create() => JS('AudioContext',
- 'new (window.AudioContext || window.webkitAudioContext)()');
/// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
AudioContextEvents get on =>
@@ -227,6 +225,9 @@ class AudioContext extends EventTarget native "*AudioContext" {
/// @domName AudioContext.startRendering; @docsEditable true
void startRendering() native;
+ static AudioContext _create() => JS('AudioContext',
+ 'new (window.AudioContext || window.webkitAudioContext)()');
+
GainNode createGain() {
if (JS('bool', '#.createGain !== undefined', this)) {
return JS('GainNode', '#.createGain()', this);
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698