| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _JavaScriptAudioNodeWrappingImplementation extends _AudioNodeWrappingImple
mentation implements JavaScriptAudioNode { | 7 class _JavaScriptAudioNodeWrappingImplementation extends _AudioNodeWrappingImple
mentation implements JavaScriptAudioNode { |
| 8 _JavaScriptAudioNodeWrappingImplementation() : super() {} | 8 _JavaScriptAudioNodeWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__JavaScriptAudioNodeWrappingImplementation() native { | 10 static create__JavaScriptAudioNodeWrappingImplementation() native { |
| 11 return new _JavaScriptAudioNodeWrappingImplementation(); | 11 return new _JavaScriptAudioNodeWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 int get bufferSize() { return _get_bufferSize(this); } | 14 int get bufferSize() { return _get_bufferSize(this); } |
| 15 static int _get_bufferSize(var _this) native; | 15 static int _get_bufferSize(var _this) native; |
| 16 | 16 |
| 17 // From EventTarget | 17 EventListener get onaudioprocess() { return _get_onaudioprocess(this); } |
| 18 static EventListener _get_onaudioprocess(var _this) native; |
| 18 | 19 |
| 19 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | 20 void set onaudioprocess(EventListener value) { _set_onaudioprocess(this, value
); } |
| 20 if (useCapture === null) { | 21 static void _set_onaudioprocess(var _this, EventListener value) native; |
| 21 _addEventListener(this, type, listener); | |
| 22 return; | |
| 23 } else { | |
| 24 _addEventListener_2(this, type, listener, useCapture); | |
| 25 return; | |
| 26 } | |
| 27 } | |
| 28 static void _addEventListener(receiver, type, listener) native; | |
| 29 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
| 30 | |
| 31 bool dispatchEvent(Event event) { | |
| 32 return _dispatchEvent(this, event); | |
| 33 } | |
| 34 static bool _dispatchEvent(receiver, event) native; | |
| 35 | |
| 36 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 37 if (useCapture === null) { | |
| 38 _removeEventListener(this, type, listener); | |
| 39 return; | |
| 40 } else { | |
| 41 _removeEventListener_2(this, type, listener, useCapture); | |
| 42 return; | |
| 43 } | |
| 44 } | |
| 45 static void _removeEventListener(receiver, type, listener) native; | |
| 46 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
| 47 | 22 |
| 48 String get typeName() { return "JavaScriptAudioNode"; } | 23 String get typeName() { return "JavaScriptAudioNode"; } |
| 49 } | 24 } |
| OLD | NEW |