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

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

Issue 16311002: IDL roll and expectations fix (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
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 30413ba07228e732b9c5dab68779bc9c62a7b780..5539896e671cecd5449ae7550a7ace9dba45b31e 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -6,7 +6,7 @@ import 'dart:_collection-dev';
import 'dart:html';
import 'dart:html_common';
import 'dart:typed_data';
-import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS;
+import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
// DO NOT EDIT - unless you are editing documentation as per:
@@ -415,7 +415,7 @@ class AudioListener native "AudioListener" {
@DomName('AudioNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section
@Experimental
-class AudioNode native "AudioNode" {
+class AudioNode extends EventTarget native "AudioNode" {
@DomName('AudioNode.channelCount')
@DocsEditable
@@ -441,6 +441,12 @@ class AudioNode native "AudioNode" {
@DocsEditable
final int numberOfOutputs;
+ @JSName('addEventListener')
+ @DomName('AudioNode.addEventListener')
+ @DocsEditable
+ @Experimental // untriaged
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native;
+
@DomName('AudioNode.connect')
@DocsEditable
void connect(destination, int output, [int input]) native;
@@ -448,6 +454,17 @@ class AudioNode native "AudioNode" {
@DomName('AudioNode.disconnect')
@DocsEditable
void disconnect(int output) native;
+
+ @DomName('AudioNode.dispatchEvent')
+ @DocsEditable
+ @Experimental // untriaged
+ bool dispatchEvent(Event event) native;
+
+ @JSName('removeEventListener')
+ @DomName('AudioNode.removeEventListener')
+ @DocsEditable
+ @Experimental // untriaged
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a

Powered by Google App Engine
This is Rietveld 408576698