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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/PannerNode.h

Issue 2512793003: Throw RangeError for invalid refDistance/maxDistance (Closed)
Patch Set: Rebase Created 4 years 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) 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 AudioParam* orientationY() const { return m_orientationY; }; 226 AudioParam* orientationY() const { return m_orientationY; };
227 AudioParam* orientationZ() const { return m_orientationZ; }; 227 AudioParam* orientationZ() const { return m_orientationZ; };
228 228
229 String panningModel() const; 229 String panningModel() const;
230 void setPanningModel(const String&); 230 void setPanningModel(const String&);
231 void setPosition(float x, float y, float z); 231 void setPosition(float x, float y, float z);
232 void setOrientation(float x, float y, float z); 232 void setOrientation(float x, float y, float z);
233 String distanceModel() const; 233 String distanceModel() const;
234 void setDistanceModel(const String&); 234 void setDistanceModel(const String&);
235 double refDistance() const; 235 double refDistance() const;
236 void setRefDistance(double); 236 void setRefDistance(double, ExceptionState&);
237 double maxDistance() const; 237 double maxDistance() const;
238 void setMaxDistance(double); 238 void setMaxDistance(double, ExceptionState&);
239 double rolloffFactor() const; 239 double rolloffFactor() const;
240 void setRolloffFactor(double); 240 void setRolloffFactor(double);
241 double coneInnerAngle() const; 241 double coneInnerAngle() const;
242 void setConeInnerAngle(double); 242 void setConeInnerAngle(double);
243 double coneOuterAngle() const; 243 double coneOuterAngle() const;
244 void setConeOuterAngle(double); 244 void setConeOuterAngle(double);
245 double coneOuterGain() const; 245 double coneOuterGain() const;
246 void setConeOuterGain(double); 246 void setConeOuterGain(double);
247 247
248 private: 248 private:
249 PannerNode(BaseAudioContext&); 249 PannerNode(BaseAudioContext&);
250 250
251 Member<AudioParam> m_positionX; 251 Member<AudioParam> m_positionX;
252 Member<AudioParam> m_positionY; 252 Member<AudioParam> m_positionY;
253 Member<AudioParam> m_positionZ; 253 Member<AudioParam> m_positionZ;
254 254
255 Member<AudioParam> m_orientationX; 255 Member<AudioParam> m_orientationX;
256 Member<AudioParam> m_orientationY; 256 Member<AudioParam> m_orientationY;
257 Member<AudioParam> m_orientationZ; 257 Member<AudioParam> m_orientationZ;
258 }; 258 };
259 259
260 } // namespace blink 260 } // namespace blink
261 261
262 #endif // PannerNode_h 262 #endif // PannerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698