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

Side by Side Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 16638013: Adding annotations for native types of type Object or dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library dart.dom.web_audio; 1 library dart.dom.web_audio;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:typed_data'; 8 import 'dart:typed_data';
9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS;
10 import 'dart:_foreign_helper' show JS; 10 import 'dart:_foreign_helper' show JS;
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 GainNode createGain() { 333 GainNode createGain() {
334 if (JS('bool', '#.createGain !== undefined', this)) { 334 if (JS('bool', '#.createGain !== undefined', this)) {
335 return JS('GainNode', '#.createGain()', this); 335 return JS('GainNode', '#.createGain()', this);
336 } else { 336 } else {
337 return JS('GainNode', '#.createGainNode()', this); 337 return JS('GainNode', '#.createGainNode()', this);
338 } 338 }
339 } 339 }
340 340
341 ScriptProcessorNode createScriptProcessor(int bufferSize, 341 ScriptProcessorNode createScriptProcessor(int bufferSize,
342 [int numberOfInputChannels, int numberOfOutputChannels]) { 342 [int numberOfInputChannels, int numberOfOutputChannels]) {
343 var function = JS('dynamic', '#.createScriptProcessor || ' 343 var function = JS('=Object', '#.createScriptProcessor || '
344 '#.createJavaScriptNode', this, this); 344 '#.createJavaScriptNode', this, this);
345 if (numberOfOutputChannels != null) { 345 if (numberOfOutputChannels != null) {
346 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this, 346 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this,
347 bufferSize, numberOfInputChannels, numberOfOutputChannels); 347 bufferSize, numberOfInputChannels, numberOfOutputChannels);
348 } else if (numberOfInputChannels != null) { 348 } else if (numberOfInputChannels != null) {
349 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this, 349 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this,
350 bufferSize, numberOfInputChannels); 350 bufferSize, numberOfInputChannels);
351 } else { 351 } else {
352 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, 352 return JS('ScriptProcessorNode', '#.call(#, #)', function, this,
353 bufferSize); 353 bufferSize);
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 // for details. All rights reserved. Use of this source code is governed by a 1057 // for details. All rights reserved. Use of this source code is governed by a
1058 // BSD-style license that can be found in the LICENSE file. 1058 // BSD-style license that can be found in the LICENSE file.
1059 1059
1060 1060
1061 @DocsEditable 1061 @DocsEditable
1062 @DomName('WaveTable') 1062 @DomName('WaveTable')
1063 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section 1063 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1064 @Experimental 1064 @Experimental
1065 class WaveTable native "WaveTable" { 1065 class WaveTable native "WaveTable" {
1066 } 1066 }
OLDNEW
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698