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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 float sampleRate() const { return m_destinationNode ? m_destinationNode->han dler().sampleRate() : 0; } 126 float sampleRate() const { return m_destinationNode ? m_destinationNode->han dler().sampleRate() : 0; }
127 127
128 String state() const; 128 String state() const;
129 AudioContextState contextState() const { return m_contextState; } 129 AudioContextState contextState() const { return m_contextState; }
130 130
131 AudioBuffer* createBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState&); 131 AudioBuffer* createBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState&);
132 132
133 // Asynchronous audio file data decoding. 133 // Asynchronous audio file data decoding.
134 void decodeAudioData(DOMArrayBuffer*, AudioBufferCallback*, AudioBufferCallb ack*, ExceptionState&); 134 void decodeAudioData(DOMArrayBuffer*, AudioBufferCallback*, AudioBufferCallb ack*, ExceptionState&);
135 135
136 AudioListener* listener() { return m_listener.get(); } 136 AudioListener* listener() const;
137 137
138 virtual bool hasRealtimeConstraint() = 0; 138 virtual bool hasRealtimeConstraint() = 0;
139 139
140 // The AudioNode create methods are called on the main thread (from JavaScri pt). 140 // The AudioNode create methods are called on the main thread (from JavaScri pt).
141 AudioBufferSourceNode* createBufferSource(ExceptionState&); 141 AudioBufferSourceNode* createBufferSource(ExceptionState&);
142 MediaElementAudioSourceNode* createMediaElementSource(HTMLMediaElement*, Exc eptionState&); 142 MediaElementAudioSourceNode* createMediaElementSource(HTMLMediaElement*, Exc eptionState&);
143 MediaStreamAudioSourceNode* createMediaStreamSource(MediaStream*, ExceptionS tate&); 143 MediaStreamAudioSourceNode* createMediaStreamSource(MediaStream*, ExceptionS tate&);
144 MediaStreamAudioDestinationNode* createMediaStreamDestination(ExceptionState &); 144 MediaStreamAudioDestinationNode* createMediaStreamDestination(ExceptionState &);
145 GainNode* createGain(ExceptionState&); 145 GainNode* createGain(ExceptionState&);
146 BiquadFilterNode* createBiquadFilter(ExceptionState&); 146 BiquadFilterNode* createBiquadFilter(ExceptionState&);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void handleStoppableSourceNodes(); 317 void handleStoppableSourceNodes();
318 318
319 // This is considering 32 is large enough for multiple channels audio. 319 // This is considering 32 is large enough for multiple channels audio.
320 // It is somewhat arbitrary and could be increased if necessary. 320 // It is somewhat arbitrary and could be increased if necessary.
321 enum { MaxNumberOfChannels = 32 }; 321 enum { MaxNumberOfChannels = 32 };
322 }; 322 };
323 323
324 } // namespace blink 324 } // namespace blink
325 325
326 #endif // AbstractAudioContext_h 326 #endif // AbstractAudioContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698