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

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

Issue 1952793002: Move the exception logic to the AudioNode creator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move more things to Node::create() Created 4 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 double m_cachedElevation; 141 double m_cachedElevation;
142 float m_cachedDistanceConeGain; 142 float m_cachedDistanceConeGain;
143 143
144 // Synchronize process() with setting of the panning model, source's locatio n information, listener, distance parameters and sound cones. 144 // Synchronize process() with setting of the panning model, source's locatio n information, listener, distance parameters and sound cones.
145 mutable Mutex m_processLock; 145 mutable Mutex m_processLock;
146 }; 146 };
147 147
148 class PannerNode final : public AudioNode { 148 class PannerNode final : public AudioNode {
149 DEFINE_WRAPPERTYPEINFO(); 149 DEFINE_WRAPPERTYPEINFO();
150 public: 150 public:
151 static PannerNode* create(AbstractAudioContext&, float sampleRate); 151 static PannerNode* create(AbstractAudioContext&, ExceptionState&);
152 PannerHandler& pannerHandler() const; 152 PannerHandler& pannerHandler() const;
153 153
154 String panningModel() const; 154 String panningModel() const;
155 void setPanningModel(const String&); 155 void setPanningModel(const String&);
156 void setPosition(float x, float y, float z); 156 void setPosition(float x, float y, float z);
157 void setOrientation(float x, float y, float z); 157 void setOrientation(float x, float y, float z);
158 void setVelocity(float x, float y, float z); 158 void setVelocity(float x, float y, float z);
159 String distanceModel() const; 159 String distanceModel() const;
160 void setDistanceModel(const String&); 160 void setDistanceModel(const String&);
161 double refDistance() const; 161 double refDistance() const;
162 void setRefDistance(double); 162 void setRefDistance(double);
163 double maxDistance() const; 163 double maxDistance() const;
164 void setMaxDistance(double); 164 void setMaxDistance(double);
165 double rolloffFactor() const; 165 double rolloffFactor() const;
166 void setRolloffFactor(double); 166 void setRolloffFactor(double);
167 double coneInnerAngle() const; 167 double coneInnerAngle() const;
168 void setConeInnerAngle(double); 168 void setConeInnerAngle(double);
169 double coneOuterAngle() const; 169 double coneOuterAngle() const;
170 void setConeOuterAngle(double); 170 void setConeOuterAngle(double);
171 double coneOuterGain() const; 171 double coneOuterGain() const;
172 void setConeOuterGain(double); 172 void setConeOuterGain(double);
173 173
174 private: 174 private:
175 PannerNode(AbstractAudioContext&, float sampleRate); 175 PannerNode(AbstractAudioContext&);
176 }; 176 };
177 177
178 } // namespace blink 178 } // namespace blink
179 179
180 #endif // PannerNode_h 180 #endif // PannerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698