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

Unified Diff: Source/modules/webaudio/AudioNode.h

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.h
diff --git a/Source/modules/webaudio/AudioNode.h b/Source/modules/webaudio/AudioNode.h
index d47c574b2cf059cc1283b0ecd8665855d6ad354b..316e2f8e0fceff607a4fef7dbcf73498654dae3b 100644
--- a/Source/modules/webaudio/AudioNode.h
+++ b/Source/modules/webaudio/AudioNode.h
@@ -42,7 +42,8 @@ class AudioContext;
class AudioNodeInput;
class AudioNodeOutput;
class AudioParam;
-class ExceptionState;
+
+typedef int ExceptionCode;
// An AudioNode is the basic building block for handling audio within an AudioContext.
// It may be an audio source, an intermediate processing module, or an audio destination.
@@ -127,9 +128,9 @@ public:
AudioNodeOutput* output(unsigned);
// Called from main thread by corresponding JavaScript methods.
- virtual void connect(AudioNode*, unsigned outputIndex, unsigned inputIndex, ExceptionState&);
- void connect(AudioParam*, unsigned outputIndex, ExceptionState&);
- virtual void disconnect(unsigned outputIndex, ExceptionState&);
+ virtual void connect(AudioNode*, unsigned outputIndex, unsigned inputIndex, ExceptionCode&);
+ void connect(AudioParam*, unsigned outputIndex, ExceptionCode&);
+ virtual void disconnect(unsigned outputIndex, ExceptionCode&);
virtual float sampleRate() const { return m_sampleRate; }
@@ -168,13 +169,13 @@ public:
void disableOutputsIfNecessary();
unsigned long channelCount();
- virtual void setChannelCount(unsigned long, ExceptionState&);
+ virtual void setChannelCount(unsigned long, ExceptionCode&);
String channelCountMode();
- void setChannelCountMode(const String&, ExceptionState&);
+ void setChannelCountMode(const String&, ExceptionCode&);
String channelInterpretation();
- void setChannelInterpretation(const String&, ExceptionState&);
+ void setChannelInterpretation(const String&, ExceptionCode&);
ChannelCountMode internalChannelCountMode() const { return m_channelCountMode; }
AudioBus::ChannelInterpretation internalChannelInterpretation() const { return m_channelInterpretation; }
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698