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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 if (!audioData) { 207 if (!audioData) {
208 exceptionState.throwDOMException( 208 exceptionState.throwDOMException(
209 SyntaxError, 209 SyntaxError,
210 "invalid ArrayBuffer for audioData."); 210 "invalid ArrayBuffer for audioData.");
211 return; 211 return;
212 } 212 }
213 m_audioDecoder.decodeAsync(audioData, sampleRate(), successCallback, errorCa llback); 213 m_audioDecoder.decodeAsync(audioData, sampleRate(), successCallback, errorCa llback);
214 } 214 }
215 215
216 AudioListener* AbstractAudioContext::listener() const
217 {
218 return m_listener;
219 }
220
216 AudioBufferSourceNode* AbstractAudioContext::createBufferSource(ExceptionState& exceptionState) 221 AudioBufferSourceNode* AbstractAudioContext::createBufferSource(ExceptionState& exceptionState)
217 { 222 {
218 ASSERT(isMainThread()); 223 ASSERT(isMainThread());
219 224
220 if (isContextClosed()) { 225 if (isContextClosed()) {
221 throwExceptionForClosedState(exceptionState); 226 throwExceptionForClosedState(exceptionState);
222 return nullptr; 227 return nullptr;
223 } 228 }
224 229
225 AudioBufferSourceNode* node = AudioBufferSourceNode::create(*this, sampleRat e()); 230 AudioBufferSourceNode* node = AudioBufferSourceNode::create(*this, sampleRat e());
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 { 856 {
852 if (executionContext()) 857 if (executionContext())
853 return executionContext()->securityOrigin(); 858 return executionContext()->securityOrigin();
854 859
855 return nullptr; 860 return nullptr;
856 } 861 }
857 862
858 } // namespace blink 863 } // namespace blink
859 864
860 #endif // ENABLE(WEB_AUDIO) 865 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698