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

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

Issue 2103043007: Rename AbstractAudioContext to BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ASSERT(isGraphOwner()) instead of DCHECK Created 4 years, 5 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 16 matching lines...) Expand all
27 27
28 #include "modules/webaudio/AudioParam.h" 28 #include "modules/webaudio/AudioParam.h"
29 #include "modules/webaudio/AudioScheduledSourceNode.h" 29 #include "modules/webaudio/AudioScheduledSourceNode.h"
30 #include "platform/audio/AudioBus.h" 30 #include "platform/audio/AudioBus.h"
31 #include "wtf/PassRefPtr.h" 31 #include "wtf/PassRefPtr.h"
32 #include "wtf/RefPtr.h" 32 #include "wtf/RefPtr.h"
33 #include "wtf/Threading.h" 33 #include "wtf/Threading.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AbstractAudioContext; 37 class BaseAudioContext;
38 class ExceptionState; 38 class ExceptionState;
39 class PeriodicWave; 39 class PeriodicWave;
40 40
41 // OscillatorNode is an audio generator of periodic waveforms. 41 // OscillatorNode is an audio generator of periodic waveforms.
42 42
43 class OscillatorHandler final : public AudioScheduledSourceHandler { 43 class OscillatorHandler final : public AudioScheduledSourceHandler {
44 public: 44 public:
45 // The waveform type. 45 // The waveform type.
46 // These must be defined as in the .idl file. 46 // These must be defined as in the .idl file.
47 enum { 47 enum {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 AudioFloatArray m_detuneValues; 92 AudioFloatArray m_detuneValues;
93 93
94 // This Persistent doesn't make a reference cycle including the owner 94 // This Persistent doesn't make a reference cycle including the owner
95 // OscillatorNode. 95 // OscillatorNode.
96 Persistent<PeriodicWave> m_periodicWave; 96 Persistent<PeriodicWave> m_periodicWave;
97 }; 97 };
98 98
99 class OscillatorNode final : public AudioScheduledSourceNode { 99 class OscillatorNode final : public AudioScheduledSourceNode {
100 DEFINE_WRAPPERTYPEINFO(); 100 DEFINE_WRAPPERTYPEINFO();
101 public: 101 public:
102 static OscillatorNode* create(AbstractAudioContext&, ExceptionState&); 102 static OscillatorNode* create(BaseAudioContext&, ExceptionState&);
103 DECLARE_VIRTUAL_TRACE(); 103 DECLARE_VIRTUAL_TRACE();
104 104
105 String type() const; 105 String type() const;
106 void setType(const String&, ExceptionState&); 106 void setType(const String&, ExceptionState&);
107 AudioParam* frequency(); 107 AudioParam* frequency();
108 AudioParam* detune(); 108 AudioParam* detune();
109 void setPeriodicWave(PeriodicWave*); 109 void setPeriodicWave(PeriodicWave*);
110 110
111 private: 111 private:
112 OscillatorNode(AbstractAudioContext&); 112 OscillatorNode(BaseAudioContext&);
113 OscillatorHandler& oscillatorHandler() const; 113 OscillatorHandler& oscillatorHandler() const;
114 114
115 Member<AudioParam> m_frequency; 115 Member<AudioParam> m_frequency;
116 Member<AudioParam> m_detune; 116 Member<AudioParam> m_detune;
117 }; 117 };
118 118
119 } // namespace blink 119 } // namespace blink
120 120
121 #endif // OscillatorNode_h 121 #endif // OscillatorNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698