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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h b/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h
index df197dd959e968e96fa73b291b3417d46461d356..53c158fbf02b32cbf9f524272e9b02c81b760289 100644
--- a/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h
@@ -135,6 +135,7 @@ public:
String state() const;
AudioContextState contextState() const { return m_contextState; }
+ void throwExceptionForClosedState(ExceptionState&);
AudioBuffer* createBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState&);
@@ -293,8 +294,6 @@ private:
bool m_isCleared;
void clear();
- void throwExceptionForClosedState(ExceptionState&);
-
// When the context goes away, there might still be some sources which
// haven't finished playing. Make sure to release them here.
void releaseActiveSourceNodes();

Powered by Google App Engine
This is Rietveld 408576698