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

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

Issue 1952793002: Move the exception logic to the AudioNode creator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef StereoPannerNode_h 5 #ifndef StereoPannerNode_h
6 #define StereoPannerNode_h 6 #define StereoPannerNode_h
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "modules/webaudio/AudioNode.h" 9 #include "modules/webaudio/AudioNode.h"
10 #include "modules/webaudio/AudioParam.h" 10 #include "modules/webaudio/AudioParam.h"
(...skipping 24 matching lines...) Expand all
35 RefPtr<AudioParamHandler> m_pan; 35 RefPtr<AudioParamHandler> m_pan;
36 36
37 AudioFloatArray m_sampleAccuratePanValues; 37 AudioFloatArray m_sampleAccuratePanValues;
38 38
39 FRIEND_TEST_ALL_PREFIXES(StereoPannerNodeTest, StereoPannerLifetime); 39 FRIEND_TEST_ALL_PREFIXES(StereoPannerNodeTest, StereoPannerLifetime);
40 }; 40 };
41 41
42 class StereoPannerNode final : public AudioNode { 42 class StereoPannerNode final : public AudioNode {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 public: 44 public:
45 static StereoPannerNode* create(AbstractAudioContext&, float sampleRate); 45 static StereoPannerNode* create(AbstractAudioContext&, ExceptionState&);
46 DECLARE_VIRTUAL_TRACE(); 46 DECLARE_VIRTUAL_TRACE();
47 47
48 AudioParam* pan() const; 48 AudioParam* pan() const;
49 49
50 private: 50 private:
51 StereoPannerNode(AbstractAudioContext&, float sampleRate); 51 StereoPannerNode(AbstractAudioContext&);
52 52
53 Member<AudioParam> m_pan; 53 Member<AudioParam> m_pan;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // StereoPannerNode_h 58 #endif // StereoPannerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698