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

Unified Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.h

Issue 2491653002: Add constructors for WebAudio events (Closed)
Patch Set: Remove unnecessary blank lines Created 4 years 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/OfflineAudioCompletionEvent.h
diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.h b/third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.h
index 8353caefd5424f9eec85b6d46d4ed7ad01e281be..7722d43029b9fd5d81e2342bf5ffc6dcea2f52c2 100644
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.h
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.h
@@ -28,12 +28,14 @@
#include "modules/EventModules.h"
#include "modules/webaudio/AudioBuffer.h"
+#include "modules/webaudio/OfflineAudioCompletionEventInit.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
namespace blink {
class AudioBuffer;
+class OfflineAudioCompletionEventInit;
class OfflineAudioCompletionEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
@@ -41,6 +43,9 @@ class OfflineAudioCompletionEvent final : public Event {
public:
static OfflineAudioCompletionEvent* create();
static OfflineAudioCompletionEvent* create(AudioBuffer* renderedBuffer);
+ static OfflineAudioCompletionEvent* create(
+ const AtomicString& type,
+ const OfflineAudioCompletionEventInit&);
~OfflineAudioCompletionEvent() override;
@@ -53,6 +58,8 @@ class OfflineAudioCompletionEvent final : public Event {
private:
OfflineAudioCompletionEvent();
explicit OfflineAudioCompletionEvent(AudioBuffer* renderedBuffer);
+ explicit OfflineAudioCompletionEvent(const AtomicString& type,
+ const OfflineAudioCompletionEventInit&);
Member<AudioBuffer> m_renderedBuffer;
};

Powered by Google App Engine
This is Rietveld 408576698