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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OscillatorNode.idl

Issue 2581813002: Measure WebAudio node constructor usage (Closed)
Patch Set: Rebase Created 3 years, 12 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
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 19 matching lines...) Expand all
30 "sawtooth", 30 "sawtooth",
31 "triangle", 31 "triangle",
32 "custom" 32 "custom"
33 }; 33 };
34 34
35 // OscillatorNode is an audio generator of periodic waveforms. 35 // OscillatorNode is an audio generator of periodic waveforms.
36 [ 36 [
37 Constructor(BaseAudioContext context, optional OscillatorOptions options), 37 Constructor(BaseAudioContext context, optional OscillatorOptions options),
38 RaisesException=Constructor, 38 RaisesException=Constructor,
39 ActiveScriptWrappable, 39 ActiveScriptWrappable,
40 Measure
40 ] 41 ]
41 interface OscillatorNode : AudioSourceNode { 42 interface OscillatorNode : AudioSourceNode {
42 43
43 [RaisesException=Setter] attribute OscillatorType type; 44 [RaisesException=Setter] attribute OscillatorType type;
44 45
45 readonly attribute AudioParam frequency; // in Hertz 46 readonly attribute AudioParam frequency; // in Hertz
46 readonly attribute AudioParam detune; // in Cents 47 readonly attribute AudioParam detune; // in Cents
47 48
48 [RaisesException] void start(optional double when); 49 [RaisesException] void start(optional double when);
49 [RaisesException] void stop(optional double when); 50 [RaisesException] void stop(optional double when);
50 51
51 void setPeriodicWave(PeriodicWave periodicWave); 52 void setPeriodicWave(PeriodicWave periodicWave);
52 53
53 attribute EventHandler onended; 54 attribute EventHandler onended;
54 }; 55 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698