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

Side by Side Diff: Source/modules/webaudio/AudioNode.h

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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 | Annotate | Revision Log
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 String channelCountMode(); 174 String channelCountMode();
175 void setChannelCountMode(const String&, ExceptionState&); 175 void setChannelCountMode(const String&, ExceptionState&);
176 176
177 String channelInterpretation(); 177 String channelInterpretation();
178 void setChannelInterpretation(const String&, ExceptionState&); 178 void setChannelInterpretation(const String&, ExceptionState&);
179 179
180 ChannelCountMode internalChannelCountMode() const { return m_channelCountMod e; } 180 ChannelCountMode internalChannelCountMode() const { return m_channelCountMod e; }
181 AudioBus::ChannelInterpretation internalChannelInterpretation() const { retu rn m_channelInterpretation; } 181 AudioBus::ChannelInterpretation internalChannelInterpretation() const { retu rn m_channelInterpretation; }
182 182
183 // EventTarget 183 // EventTarget
184 virtual const AtomicString& interfaceName() const OVERRIDE; 184 virtual const AtomicString& interfaceName() const OVERRIDE FINAL;
185 virtual ExecutionContext* executionContext() const OVERRIDE; 185 virtual ExecutionContext* executionContext() const OVERRIDE FINAL;
186 186
187 protected: 187 protected:
188 // Inputs and outputs must be created before the AudioNode is initialized. 188 // Inputs and outputs must be created before the AudioNode is initialized.
189 void addInput(PassOwnPtr<AudioNodeInput>); 189 void addInput(PassOwnPtr<AudioNodeInput>);
190 void addOutput(PassOwnPtr<AudioNodeOutput>); 190 void addOutput(PassOwnPtr<AudioNodeOutput>);
191 191
192 // Called by processIfNecessary() to cause all parts of the rendering graph connected to us to process. 192 // Called by processIfNecessary() to cause all parts of the rendering graph connected to us to process.
193 // Each rendering quantum, the audio data for each of the AudioNode's inputs will be available after this method is called. 193 // Each rendering quantum, the audio data for each of the AudioNode's inputs will be available after this method is called.
194 // Called from context's audio thread. 194 // Called from context's audio thread.
195 virtual void pullInputs(size_t framesToProcess); 195 virtual void pullInputs(size_t framesToProcess);
(...skipping 17 matching lines...) Expand all
213 volatile int m_connectionRefCount; 213 volatile int m_connectionRefCount;
214 214
215 bool m_isMarkedForDeletion; 215 bool m_isMarkedForDeletion;
216 bool m_isDisabled; 216 bool m_isDisabled;
217 217
218 #if DEBUG_AUDIONODE_REFERENCES 218 #if DEBUG_AUDIONODE_REFERENCES
219 static bool s_isNodeCountInitialized; 219 static bool s_isNodeCountInitialized;
220 static int s_nodeCount[NodeTypeEnd]; 220 static int s_nodeCount[NodeTypeEnd];
221 #endif 221 #endif
222 222
223 virtual void refEventTarget() OVERRIDE { ref(); } 223 virtual void refEventTarget() OVERRIDE FINAL { ref(); }
224 virtual void derefEventTarget() OVERRIDE { deref(); } 224 virtual void derefEventTarget() OVERRIDE FINAL { deref(); }
225 225
226 protected: 226 protected:
227 unsigned m_channelCount; 227 unsigned m_channelCount;
228 ChannelCountMode m_channelCountMode; 228 ChannelCountMode m_channelCountMode;
229 AudioBus::ChannelInterpretation m_channelInterpretation; 229 AudioBus::ChannelInterpretation m_channelInterpretation;
230 }; 230 };
231 231
232 } // namespace WebCore 232 } // namespace WebCore
233 233
234 #endif // AudioNode_h 234 #endif // AudioNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioDestinationNode.h ('k') | Source/modules/webaudio/AudioNodeInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698