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

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

Issue 210973002: Supporting a playbackTime attribute on AudioprocessingEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 9 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: Source/modules/webaudio/AudioProcessingEvent.h
diff --git a/Source/modules/webaudio/AudioProcessingEvent.h b/Source/modules/webaudio/AudioProcessingEvent.h
index f193e2db40d347214ce2418e7033ce22aaf70756..31437c08e056f0e894f276259bad49d1fa62f4e9 100644
--- a/Source/modules/webaudio/AudioProcessingEvent.h
+++ b/Source/modules/webaudio/AudioProcessingEvent.h
@@ -37,12 +37,13 @@ class AudioBuffer;
class AudioProcessingEvent FINAL : public Event {
public:
static PassRefPtrWillBeRawPtr<AudioProcessingEvent> create();
- static PassRefPtrWillBeRawPtr<AudioProcessingEvent> create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer);
+ static PassRefPtrWillBeRawPtr<AudioProcessingEvent> create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime);
virtual ~AudioProcessingEvent();
AudioBuffer* inputBuffer() { return m_inputBuffer.get(); }
AudioBuffer* outputBuffer() { return m_outputBuffer.get(); }
+ double playbackTime() const { return m_playbackTime; }
virtual const AtomicString& interfaceName() const OVERRIDE;
@@ -50,10 +51,11 @@ public:
private:
AudioProcessingEvent();
- AudioProcessingEvent(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer);
+ AudioProcessingEvent(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime);
RefPtr<AudioBuffer> m_inputBuffer;
RefPtr<AudioBuffer> m_outputBuffer;
+ double m_playbackTime;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698