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

Side by Side Diff: Source/modules/webaudio/PannerNode.idl

Issue 927333004: Add [TypeChecking=Unrestricted] to Web Audio interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 }; 28 };
29 29
30 enum DistanceModelType { 30 enum DistanceModelType {
31 "linear", 31 "linear",
32 "inverse", 32 "inverse",
33 "exponential" 33 "exponential"
34 }; 34 };
35 35
36 [ 36 [
37 NoInterfaceObject, 37 NoInterfaceObject,
38 Conditional=WEB_AUDIO 38 Conditional=WEB_AUDIO,
39 TypeChecking=Unrestricted,
39 ] interface PannerNode : AudioNode { 40 ] interface PannerNode : AudioNode {
40 // Default model for stereo is equalpower. 41 // Default model for stereo is equalpower.
41 attribute PanningModelType panningModel; 42 attribute PanningModelType panningModel;
42 43
43 // Uses a 3D cartesian coordinate system 44 // Uses a 3D cartesian coordinate system
44 void setPosition(float x, float y, float z); 45 void setPosition(float x, float y, float z);
45 void setOrientation(float x, float y, float z); 46 void setOrientation(float x, float y, float z);
46 void setVelocity(float x, float y, float z); 47 void setVelocity(float x, float y, float z);
47 48
48 // Distance model 49 // Distance model
49 attribute DistanceModelType distanceModel; 50 attribute DistanceModelType distanceModel;
50 51
51 attribute double refDistance; 52 attribute double refDistance;
52 attribute double maxDistance; 53 attribute double maxDistance;
53 attribute double rolloffFactor; 54 attribute double rolloffFactor;
54 55
55 // Directional sound cone 56 // Directional sound cone
56 attribute double coneInnerAngle; 57 attribute double coneInnerAngle;
57 attribute double coneOuterAngle; 58 attribute double coneOuterAngle;
58 attribute double coneOuterGain; 59 attribute double coneOuterGain;
59 }; 60 };
OLDNEW
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698