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

Side by Side Diff: third_party/WebCore/Modules/webaudio/Oscillator.idl

Issue 10381128: Roll IDL to multivm@516 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 17 matching lines...) Expand all
28 Conditional=WEB_AUDIO, 28 Conditional=WEB_AUDIO,
29 JSGenerateToJSObject 29 JSGenerateToJSObject
30 ] Oscillator : AudioSourceNode { 30 ] Oscillator : AudioSourceNode {
31 31
32 // Type constants. 32 // Type constants.
33 const unsigned short SINE = 0; 33 const unsigned short SINE = 0;
34 const unsigned short SQUARE = 1; 34 const unsigned short SQUARE = 1;
35 const unsigned short SAWTOOTH = 2; 35 const unsigned short SAWTOOTH = 2;
36 const unsigned short TRIANGLE = 3; 36 const unsigned short TRIANGLE = 3;
37 const unsigned short CUSTOM = 4; 37 const unsigned short CUSTOM = 4;
38 38
39 attribute unsigned short type; 39 attribute unsigned short type;
40 40
41 // Playback state constants.
42 const unsigned short UNSCHEDULED_STATE = 0;
43 const unsigned short SCHEDULED_STATE = 1;
44 const unsigned short PLAYING_STATE = 2;
45 const unsigned short FINISHED_STATE = 3;
46
47 readonly attribute unsigned short playbackState;
48
41 readonly attribute AudioParam frequency; // in Hertz 49 readonly attribute AudioParam frequency; // in Hertz
42 readonly attribute AudioParam detune; // in Cents 50 readonly attribute AudioParam detune; // in Cents
43 51
52 void noteOn(in double when);
53 void noteOff(in double when);
44 void setWaveTable(in WaveTable waveTable); 54 void setWaveTable(in WaveTable waveTable);
45 55
46 }; 56 };
47 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698