Title: [265168] trunk
Revision
265168
Author
[email protected]
Date
2020-07-31 16:41:39 -0700 (Fri, 31 Jul 2020)

Log Message

Add OfflineAudioCompletionEvent constructor
https://bugs.webkit.org/show_bug.cgi?id=214994

Reviewed by Eric Carlson.

LayoutTests/imported/w3c:

Rebaseline WPT test now that more checks are passing.

* web-platform-tests/webaudio/idlharness.https.window-expected.txt:

Source/WebCore:

Add OfflineAudioCompletionEvent constructor, as per:
- https://www.w3.org/TR/webaudio/#OfflineAudioCompletionEvent

Test: webaudio/OfflineAudioCompletionEvent-constructor.html

* CMakeLists.txt:
* DerivedSources-input.xcfilelist:
* DerivedSources-output.xcfilelist:
* DerivedSources.make:
* Modules/webaudio/BaseAudioContext.cpp:
(WebCore::BaseAudioContext::finishedRendering):
* Modules/webaudio/OfflineAudioCompletionEvent.cpp:
(WebCore::OfflineAudioCompletionEvent::create):
(WebCore::OfflineAudioCompletionEvent::OfflineAudioCompletionEvent):
* Modules/webaudio/OfflineAudioCompletionEvent.h:
* Modules/webaudio/OfflineAudioCompletionEvent.idl:
* Modules/webaudio/OfflineAudioCompletionEventInit.h: Copied from Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl.
* Modules/webaudio/OfflineAudioCompletionEventInit.idl: Copied from Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl.
* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:

LayoutTests:

Add layout test coverage.

* webaudio/OfflineAudioCompletionEvent-constructor-expected.txt: Added.
* webaudio/OfflineAudioCompletionEvent-constructor.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (265167 => 265168)


--- trunk/LayoutTests/ChangeLog	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/LayoutTests/ChangeLog	2020-07-31 23:41:39 UTC (rev 265168)
@@ -1,3 +1,15 @@
+2020-07-31  Chris Dumez  <[email protected]>
+
+        Add OfflineAudioCompletionEvent constructor
+        https://bugs.webkit.org/show_bug.cgi?id=214994
+
+        Reviewed by Eric Carlson.
+
+        Add layout test coverage.
+
+        * webaudio/OfflineAudioCompletionEvent-constructor-expected.txt: Added.
+        * webaudio/OfflineAudioCompletionEvent-constructor.html: Added.
+
 2020-07-31  Jer Noble  <[email protected]>
 
         [Mac] YouTube does not offer HDR variants to devices which support HDR

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (265167 => 265168)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-07-31 23:41:39 UTC (rev 265168)
@@ -1,5 +1,16 @@
 2020-07-31  Chris Dumez  <[email protected]>
 
+        Add OfflineAudioCompletionEvent constructor
+        https://bugs.webkit.org/show_bug.cgi?id=214994
+
+        Reviewed by Eric Carlson.
+
+        Rebaseline WPT test now that more checks are passing.
+
+        * web-platform-tests/webaudio/idlharness.https.window-expected.txt:
+
+2020-07-31  Chris Dumez  <[email protected]>
+
         Add constructor for WaveShaperNode
         https://bugs.webkit.org/show_bug.cgi?id=214989
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt (265167 => 265168)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt	2020-07-31 23:41:39 UTC (rev 265168)
@@ -160,7 +160,7 @@
 PASS BaseAudioContext interface: new OfflineAudioContext(1, 1, sample_rate) must inherit property "decodeAudioData(ArrayBuffer, optional DecodeSuccessCallback?, optional DecodeErrorCallback?)" with the proper type 
 FAIL BaseAudioContext interface: calling decodeAudioData(ArrayBuffer, optional DecodeSuccessCallback?, optional DecodeErrorCallback?) on new OfflineAudioContext(1, 1, sample_rate) with too few arguments must throw TypeError assert_unreached: Throws "TypeError: Not enough arguments" instead of rejecting promise Reached unreachable code
 PASS OfflineAudioCompletionEvent interface: existence and properties of interface object 
-FAIL OfflineAudioCompletionEvent interface object length assert_equals: wrong value for OfflineAudioCompletionEvent.length expected 2 but got 0
+PASS OfflineAudioCompletionEvent interface object length 
 PASS OfflineAudioCompletionEvent interface object name 
 PASS OfflineAudioCompletionEvent interface: existence and properties of interface prototype object 
 PASS OfflineAudioCompletionEvent interface: existence and properties of interface prototype object's "constructor" property 

Added: trunk/LayoutTests/webaudio/OfflineAudioCompletionEvent-constructor-expected.txt (0 => 265168)


--- trunk/LayoutTests/webaudio/OfflineAudioCompletionEvent-constructor-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/webaudio/OfflineAudioCompletionEvent-constructor-expected.txt	2020-07-31 23:41:39 UTC (rev 265168)
@@ -0,0 +1,21 @@
+Tests the OfflineAudioCompletionEvent constructor
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS event = new OfflineAudioCompletionEvent; threw exception TypeError: Not enough arguments.
+PASS event = new OfflineAudioCompletionEvent('foo'); threw exception TypeError: Not enough arguments.
+PASS event = new OfflineAudioCompletionEvent('foo', { renderedBuffer: null }); threw exception TypeError: Type error.
+PASS buffer = context.createBuffer(2, 100, 46000); did not throw exception.
+PASS event = new OfflineAudioCompletionEvent('foo', { renderedBuffer: buffer, bubbles: true }); did not throw exception.
+PASS event.type is "foo"
+PASS event.bubbles is true
+PASS event.cancelable is false
+PASS event.composed is false
+PASS event.renderedBuffer.length is buffer.length
+PASS event.renderedBuffer.duration is buffer.duration
+PASS event.renderedBuffer.sampleRate is buffer.sampleRate
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/webaudio/OfflineAudioCompletionEvent-constructor.html (0 => 265168)


--- trunk/LayoutTests/webaudio/OfflineAudioCompletionEvent-constructor.html	                        (rev 0)
+++ trunk/LayoutTests/webaudio/OfflineAudioCompletionEvent-constructor.html	2020-07-31 23:41:39 UTC (rev 265168)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<script>
+description("Tests the OfflineAudioCompletionEvent constructor");
+
+shouldThrowErrorName("event = new OfflineAudioCompletionEvent;", "TypeError");
+shouldThrowErrorName("event = new OfflineAudioCompletionEvent('foo');", "TypeError");
+shouldThrowErrorName("event = new OfflineAudioCompletionEvent('foo', { renderedBuffer: null });", "TypeError");
+
+let context = new AudioContext;
+shouldNotThrow("buffer = context.createBuffer(2, 100, 46000);");
+shouldNotThrow("event = new OfflineAudioCompletionEvent('foo', { renderedBuffer: buffer, bubbles: true });");
+shouldBeEqualToString("event.type", "foo");
+shouldBeTrue("event.bubbles");
+shouldBeFalse("event.cancelable");
+shouldBeFalse("event.composed");
+shouldBe("event.renderedBuffer.length", "buffer.length");
+shouldBe("event.renderedBuffer.duration", "buffer.duration");
+shouldBe("event.renderedBuffer.sampleRate", "buffer.sampleRate");
+
+</script>
+</body>
+</html>

Modified: trunk/Source/WebCore/CMakeLists.txt (265167 => 265168)


--- trunk/Source/WebCore/CMakeLists.txt	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/CMakeLists.txt	2020-07-31 23:41:39 UTC (rev 265168)
@@ -477,6 +477,7 @@
     Modules/webaudio/MediaStreamAudioDestinationNode.idl
     Modules/webaudio/MediaStreamAudioSourceNode.idl
     Modules/webaudio/OfflineAudioCompletionEvent.idl
+    Modules/webaudio/OfflineAudioCompletionEventInit.idl
     Modules/webaudio/OfflineAudioContext.idl
     Modules/webaudio/OfflineAudioContextOptions.idl
     Modules/webaudio/OscillatorNode.idl

Modified: trunk/Source/WebCore/ChangeLog (265167 => 265168)


--- trunk/Source/WebCore/ChangeLog	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/ChangeLog	2020-07-31 23:41:39 UTC (rev 265168)
@@ -1,3 +1,31 @@
+2020-07-31  Chris Dumez  <[email protected]>
+
+        Add OfflineAudioCompletionEvent constructor
+        https://bugs.webkit.org/show_bug.cgi?id=214994
+
+        Reviewed by Eric Carlson.
+
+        Add OfflineAudioCompletionEvent constructor, as per:
+        - https://www.w3.org/TR/webaudio/#OfflineAudioCompletionEvent
+
+        Test: webaudio/OfflineAudioCompletionEvent-constructor.html
+
+        * CMakeLists.txt:
+        * DerivedSources-input.xcfilelist:
+        * DerivedSources-output.xcfilelist:
+        * DerivedSources.make:
+        * Modules/webaudio/BaseAudioContext.cpp:
+        (WebCore::BaseAudioContext::finishedRendering):
+        * Modules/webaudio/OfflineAudioCompletionEvent.cpp:
+        (WebCore::OfflineAudioCompletionEvent::create):
+        (WebCore::OfflineAudioCompletionEvent::OfflineAudioCompletionEvent):
+        * Modules/webaudio/OfflineAudioCompletionEvent.h:
+        * Modules/webaudio/OfflineAudioCompletionEvent.idl:
+        * Modules/webaudio/OfflineAudioCompletionEventInit.h: Copied from Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl.
+        * Modules/webaudio/OfflineAudioCompletionEventInit.idl: Copied from Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl.
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+
 2020-07-31  Jer Noble  <[email protected]>
 
         [Mac] YouTube does not offer HDR variants to devices which support HDR

Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (265167 => 265168)


--- trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-07-31 23:41:39 UTC (rev 265168)
@@ -326,6 +326,7 @@
 $(PROJECT_DIR)/Modules/webaudio/MediaStreamAudioDestinationNode.idl
 $(PROJECT_DIR)/Modules/webaudio/MediaStreamAudioSourceNode.idl
 $(PROJECT_DIR)/Modules/webaudio/OfflineAudioCompletionEvent.idl
+$(PROJECT_DIR)/Modules/webaudio/OfflineAudioCompletionEventInit.idl
 $(PROJECT_DIR)/Modules/webaudio/OfflineAudioContext.idl
 $(PROJECT_DIR)/Modules/webaudio/OfflineAudioContextOptions.idl
 $(PROJECT_DIR)/Modules/webaudio/OscillatorNode.idl

Modified: trunk/Source/WebCore/DerivedSources-output.xcfilelist (265167 => 265168)


--- trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-07-31 23:41:39 UTC (rev 265168)
@@ -1222,6 +1222,8 @@
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOESVertexArrayObject.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioCompletionEvent.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioCompletionEvent.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioCompletionEventInit.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioCompletionEventInit.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContext.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContext.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContextOptions.cpp

Modified: trunk/Source/WebCore/DerivedSources.make (265167 => 265168)


--- trunk/Source/WebCore/DerivedSources.make	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/DerivedSources.make	2020-07-31 23:41:39 UTC (rev 265168)
@@ -409,6 +409,7 @@
     $(WebCore)/Modules/webaudio/MediaStreamAudioDestinationNode.idl \
     $(WebCore)/Modules/webaudio/MediaStreamAudioSourceNode.idl \
     $(WebCore)/Modules/webaudio/OfflineAudioCompletionEvent.idl \
+    $(WebCore)/Modules/webaudio/OfflineAudioCompletionEventInit.idl \
     $(WebCore)/Modules/webaudio/OfflineAudioContext.idl \
     $(WebCore)/Modules/webaudio/OfflineAudioContextOptions.idl \
     $(WebCore)/Modules/webaudio/OscillatorNode.idl \

Modified: trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp (265167 => 265168)


--- trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp	2020-07-31 23:41:39 UTC (rev 265168)
@@ -1104,7 +1104,7 @@
         return;
 
     clearPendingActivityIfExitEarly.release();
-    m_eventQueue->enqueueEvent(OfflineAudioCompletionEvent::create(renderedBuffer.get()));
+    m_eventQueue->enqueueEvent(OfflineAudioCompletionEvent::create(*renderedBuffer));
 
     finishedRenderingScope.release();
     didFinishOfflineRendering(renderedBuffer.releaseNonNull());

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp (265167 => 265168)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp	2020-07-31 23:41:39 UTC (rev 265168)
@@ -30,6 +30,7 @@
 
 #include "AudioBuffer.h"
 #include "EventNames.h"
+#include "OfflineAudioCompletionEventInit.h"
 #include <wtf/IsoMallocInlines.h>
 
 namespace WebCore {
@@ -36,17 +37,29 @@
 
 WTF_MAKE_ISO_ALLOCATED_IMPL(OfflineAudioCompletionEvent);
 
-Ref<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(RefPtr<AudioBuffer>&& renderedBuffer)
+Ref<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(Ref<AudioBuffer>&& renderedBuffer)
 {
     return adoptRef(*new OfflineAudioCompletionEvent(WTFMove(renderedBuffer)));
 }
 
-OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(RefPtr<AudioBuffer>&& renderedBuffer)
+Ref<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(const AtomString& eventType, OfflineAudioCompletionEventInit&& init)
+{
+    RELEASE_ASSERT(init.renderedBuffer);
+    return adoptRef(*new OfflineAudioCompletionEvent(eventType, WTFMove(init)));
+}
+
+OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(Ref<AudioBuffer>&& renderedBuffer)
     : Event(eventNames().completeEvent, CanBubble::Yes, IsCancelable::No)
     , m_renderedBuffer(WTFMove(renderedBuffer))
 {
 }
 
+OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(const AtomString& eventType, OfflineAudioCompletionEventInit&& init)
+    : Event(eventType, init, IsTrusted::No)
+    , m_renderedBuffer(init.renderedBuffer.releaseNonNull())
+{
+}
+
 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() = default;
 
 EventInterface OfflineAudioCompletionEvent::eventInterface() const

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h (265167 => 265168)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h	2020-07-31 23:41:39 UTC (rev 265168)
@@ -24,27 +24,30 @@
 
 #pragma once
 
-#include "AudioBuffer.h"
 #include "Event.h"
-#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
+class AudioBuffer;
+struct OfflineAudioCompletionEventInit;
+
 class OfflineAudioCompletionEvent final : public Event {
     WTF_MAKE_ISO_ALLOCATED(OfflineAudioCompletionEvent);
 public:
-    static Ref<OfflineAudioCompletionEvent> create(RefPtr<AudioBuffer>&& renderedBuffer);
+    static Ref<OfflineAudioCompletionEvent> create(Ref<AudioBuffer>&& renderedBuffer);
+    static Ref<OfflineAudioCompletionEvent> create(const AtomString& eventType, OfflineAudioCompletionEventInit&&);
     
     virtual ~OfflineAudioCompletionEvent();
 
-    AudioBuffer* renderedBuffer() { return m_renderedBuffer.get(); }
+    AudioBuffer& renderedBuffer() { return m_renderedBuffer.get(); }
 
     EventInterface eventInterface() const override;
 
 private:
-    explicit OfflineAudioCompletionEvent(RefPtr<AudioBuffer>&& renderedBuffer);
+    explicit OfflineAudioCompletionEvent(Ref<AudioBuffer>&& renderedBuffer);
+    OfflineAudioCompletionEvent(const AtomString& eventType, OfflineAudioCompletionEventInit&&);
 
-    RefPtr<AudioBuffer> m_renderedBuffer;
+    Ref<AudioBuffer> m_renderedBuffer;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl (265167 => 265168)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl	2020-07-31 23:41:39 UTC (rev 265168)
@@ -26,5 +26,7 @@
     Conditional=WEB_AUDIO,
     JSGenerateToJSObject
 ] interface OfflineAudioCompletionEvent : Event {
+    constructor (DOMString type, OfflineAudioCompletionEventInit eventInitDict);
+
     readonly attribute AudioBuffer renderedBuffer;
 };

Copied: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEventInit.h (from rev 265167, trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl) (0 => 265168)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEventInit.h	                        (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEventInit.h	2020-07-31 23:41:39 UTC (rev 265168)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2020, Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1.  Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#include "AudioBuffer.h"
+#include "EventInit.h"
+
+namespace WebCore {
+
+struct OfflineAudioCompletionEventInit : EventInit {
+    RefPtr<AudioBuffer> renderedBuffer;
+};
+
+}

Copied: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEventInit.idl (from rev 265167, trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl) (0 => 265168)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEventInit.idl	                        (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEventInit.idl	2020-07-31 23:41:39 UTC (rev 265168)
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2020, Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1.  Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+[
+    Conditional=WEB_AUDIO,
+] dictionary OfflineAudioCompletionEventInit : EventInit {
+    required AudioBuffer renderedBuffer;
+};

Modified: trunk/Source/WebCore/Sources.txt (265167 => 265168)


--- trunk/Source/WebCore/Sources.txt	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/Sources.txt	2020-07-31 23:41:39 UTC (rev 265168)
@@ -3127,6 +3127,7 @@
 JSOESTextureHalfFloatLinear.cpp
 JSOESVertexArrayObject.cpp
 JSOfflineAudioCompletionEvent.cpp
+JSOfflineAudioCompletionEventInit.cpp
 JSOfflineAudioContext.cpp
 JSOfflineAudioContextOptions.cpp
 JSOffscreenCanvas.cpp

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (265167 => 265168)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-07-31 23:40:06 UTC (rev 265167)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-07-31 23:41:39 UTC (rev 265168)
@@ -2438,6 +2438,7 @@
 		8326BF8E24D35C33001F8A85 /* OverSampleType.h in Headers */ = {isa = PBXBuildFile; fileRef = 8326BF8924D35C20001F8A85 /* OverSampleType.h */; };
 		8326BF8F24D35C39001F8A85 /* WaveShaperOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8326BF8C24D35C20001F8A85 /* WaveShaperOptions.h */; };
 		832B843419D8E55100B26055 /* SVGAnimateElementBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 832B843319D8E55100B26055 /* SVGAnimateElementBase.h */; };
+		833AE52924D386F200017C4B /* OfflineAudioCompletionEventInit.h in Headers */ = {isa = PBXBuildFile; fileRef = 833AE52824D386E100017C4B /* OfflineAudioCompletionEventInit.h */; };
 		833B9E321F508D8500E0E428 /* JSFileSystemDirectoryEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = 833B9E2F1F508D8000E0E428 /* JSFileSystemDirectoryEntry.h */; };
 		833B9E341F508D8500E0E428 /* JSFileSystemEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = 833B9E2A1F508D8000E0E428 /* JSFileSystemEntry.h */; };
 		833B9E361F508D8500E0E428 /* JSFileSystemFileEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = 833B9E2C1F508D8000E0E428 /* JSFileSystemFileEntry.h */; };
@@ -10432,6 +10433,8 @@
 		8329DCC21C7A6AE300730B33 /* HTMLHyperlinkElementUtils.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLHyperlinkElementUtils.idl; sourceTree = "<group>"; };
 		832B843319D8E55100B26055 /* SVGAnimateElementBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGAnimateElementBase.h; sourceTree = "<group>"; };
 		832B843519D8E57400B26055 /* SVGAnimateElementBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAnimateElementBase.cpp; sourceTree = "<group>"; };
+		833AE52624D386E100017C4B /* OfflineAudioCompletionEventInit.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = OfflineAudioCompletionEventInit.idl; sourceTree = "<group>"; };
+		833AE52824D386E100017C4B /* OfflineAudioCompletionEventInit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OfflineAudioCompletionEventInit.h; sourceTree = "<group>"; };
 		833B9E2A1F508D8000E0E428 /* JSFileSystemEntry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSFileSystemEntry.h; sourceTree = "<group>"; };
 		833B9E2B1F508D8000E0E428 /* JSFileSystemDirectoryEntry.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSFileSystemDirectoryEntry.cpp; sourceTree = "<group>"; };
 		833B9E2C1F508D8000E0E428 /* JSFileSystemFileEntry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSFileSystemFileEntry.h; sourceTree = "<group>"; };
@@ -29569,6 +29572,8 @@
 				FDA3E955134A49EF008D4B5A /* OfflineAudioCompletionEvent.cpp */,
 				FDA3E956134A49EF008D4B5A /* OfflineAudioCompletionEvent.h */,
 				FDA3E95D134A49FF008D4B5A /* OfflineAudioCompletionEvent.idl */,
+				833AE52824D386E100017C4B /* OfflineAudioCompletionEventInit.h */,
+				833AE52624D386E100017C4B /* OfflineAudioCompletionEventInit.idl */,
 				FDA9325A16703B2A008982DC /* OfflineAudioContext.cpp */,
 				FDA9325B16703B2A008982DC /* OfflineAudioContext.h */,
 				FDA9325C16703B2A008982DC /* OfflineAudioContext.idl */,
@@ -32664,6 +32669,7 @@
 				31078CC81880AABB008099DC /* OESTextureHalfFloatLinear.h in Headers */,
 				77A17A7212F28182004E02F6 /* OESVertexArrayObject.h in Headers */,
 				FDA3E95A134A49EF008D4B5A /* OfflineAudioCompletionEvent.h in Headers */,
+				833AE52924D386F200017C4B /* OfflineAudioCompletionEventInit.h in Headers */,
 				FDA9325E16703B2A008982DC /* OfflineAudioContext.h in Headers */,
 				E7CF84A924C6461C00B06B90 /* OfflineAudioContextOptions.h in Headers */,
 				FDA3E95C134A49EF008D4B5A /* OfflineAudioDestinationNode.h in Headers */,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to