Index: third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
index 0522b8441337523cc796ba652ce99c5050f08af5..468f59d8336b6b16f040f0c02ef7a327f584c647 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
@@ -130,6 +130,18 @@ ScriptPromise AudioContext::resumeContext(ScriptState* scriptState) |
return promise; |
} |
+ScriptPromise AudioContext::suspendContext(ScriptState* scriptState, double suspendTime) |
+{ |
+ // This CANNOT be called on AudioContext; it is to implement the pure |
+ // virtual interface from AbstractAudioContext. |
+ RELEASE_ASSERT_NOT_REACHED(); |
+ |
+ return ScriptPromise::rejectWithDOMException( |
+ scriptState, |
+ DOMException::create(InvalidStateError, |
+ "Only offline audio context can be suspended at the specified time.")); |
+} |
+ |
ScriptPromise AudioContext::closeContext(ScriptState* scriptState) |
{ |
if (isContextClosed()) { |