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

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

Issue 1865583002: Implement BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/modules/webaudio/AudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioContext.h b/third_party/WebKit/Source/modules/webaudio/AudioContext.h
index 33fc76846465ca12358d317e195b07e4ee893b85..5148861d8458f0a82276b4ea5707659d3576f096 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.h
@@ -7,24 +7,34 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
-#include "modules/webaudio/AbstractAudioContext.h"
+#include "modules/webaudio/BaseAudioContext.h"
#include "platform/heap/Handle.h"
namespace blink {
class Document;
class ExceptionState;
+class HTMLMediaElement;
+class MediaElementAudioSourceNode;
+class MediaStreamAudioDestinationNode;
+class MediaStreamAudioSourceNode;
class ScriptState;
-// This is an AbstractAudioContext which actually plays sound, unlike an
+// This is an BaseAudioContext which actually plays sound, unlike an
// OfflineAudioContext which renders sound into a buffer.
-class AudioContext : public AbstractAudioContext {
+class AudioContext : public BaseAudioContext {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static AbstractAudioContext* create(Document&, ExceptionState&);
+ static AudioContext* create(Document&, ExceptionState&);
~AudioContext() override;
DECLARE_VIRTUAL_TRACE();
+ MediaElementAudioSourceNode* createMediaElementSource(HTMLMediaElement*, ExceptionState&);
+ MediaStreamAudioSourceNode* createMediaStreamSource(MediaStream*, ExceptionState&);
+ MediaStreamAudioDestinationNode* createMediaStreamDestination(ExceptionState&);
+
+
ScriptPromise closeContext(ScriptState*) final;
bool isContextClosed() const final;

Powered by Google App Engine
This is Rietveld 408576698