Chromium Code Reviews| 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( |
|
yhirano
2015/11/06 08:13:29
RELEASE_ASSERT always takes effect, so L139-L142 d
hongchan
2015/11/06 19:33:40
Since we don't need to define this at all here, I
|
| + scriptState, |
| + DOMException::create(InvalidStateError, |
| + "Only offline audio context can be suspended at the specified time.")); |
| +} |
| + |
| ScriptPromise AudioContext::closeContext(ScriptState* scriptState) |
| { |
| if (isContextClosed()) { |