mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
parent
ce23efc5f6
commit
f87041bf3a
Notes:
github-actions[bot]
2024-11-15 13:50:17 +00:00
Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
1722 changed files with 9939 additions and 9906 deletions
|
@ -22,48 +22,48 @@ struct DynamicsCompressorOptions : AudioNodeOptions {
|
|||
// https://webaudio.github.io/web-audio-api/#DynamicsCompressorNode
|
||||
class DynamicsCompressorNode : public AudioNode {
|
||||
WEB_PLATFORM_OBJECT(DynamicsCompressorNode, AudioNode);
|
||||
JS_DECLARE_ALLOCATOR(DynamicsCompressorNode);
|
||||
GC_DECLARE_ALLOCATOR(DynamicsCompressorNode);
|
||||
|
||||
public:
|
||||
virtual ~DynamicsCompressorNode() override;
|
||||
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<DynamicsCompressorNode>> create(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<DynamicsCompressorNode>> construct_impl(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
static WebIDL::ExceptionOr<GC::Ref<DynamicsCompressorNode>> create(JS::Realm&, GC::Ref<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
static WebIDL::ExceptionOr<GC::Ref<DynamicsCompressorNode>> construct_impl(JS::Realm&, GC::Ref<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
|
||||
WebIDL::UnsignedLong number_of_inputs() override { return 1; }
|
||||
WebIDL::UnsignedLong number_of_outputs() override { return 1; }
|
||||
|
||||
JS::NonnullGCPtr<AudioParam const> threshold() const { return m_threshold; }
|
||||
JS::NonnullGCPtr<AudioParam const> knee() const { return m_knee; }
|
||||
JS::NonnullGCPtr<AudioParam const> ratio() const { return m_ratio; }
|
||||
JS::NonnullGCPtr<AudioParam const> attack() const { return m_attack; }
|
||||
JS::NonnullGCPtr<AudioParam const> release() const { return m_release; }
|
||||
GC::Ref<AudioParam const> threshold() const { return m_threshold; }
|
||||
GC::Ref<AudioParam const> knee() const { return m_knee; }
|
||||
GC::Ref<AudioParam const> ratio() const { return m_ratio; }
|
||||
GC::Ref<AudioParam const> attack() const { return m_attack; }
|
||||
GC::Ref<AudioParam const> release() const { return m_release; }
|
||||
float reduction() const { return m_reduction; }
|
||||
|
||||
WebIDL::ExceptionOr<void> set_channel_count_mode(Bindings::ChannelCountMode) override;
|
||||
WebIDL::ExceptionOr<void> set_channel_count(WebIDL::UnsignedLong) override;
|
||||
|
||||
protected:
|
||||
DynamicsCompressorNode(JS::Realm&, JS::NonnullGCPtr<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
DynamicsCompressorNode(JS::Realm&, GC::Ref<BaseAudioContext>, DynamicsCompressorOptions const& = {});
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
private:
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-threshold
|
||||
JS::NonnullGCPtr<AudioParam> m_threshold;
|
||||
GC::Ref<AudioParam> m_threshold;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-knee
|
||||
JS::NonnullGCPtr<AudioParam> m_knee;
|
||||
GC::Ref<AudioParam> m_knee;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-ratio
|
||||
JS::NonnullGCPtr<AudioParam> m_ratio;
|
||||
GC::Ref<AudioParam> m_ratio;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-attack
|
||||
JS::NonnullGCPtr<AudioParam> m_attack;
|
||||
GC::Ref<AudioParam> m_attack;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-release
|
||||
JS::NonnullGCPtr<AudioParam> m_release;
|
||||
GC::Ref<AudioParam> m_release;
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-dynamicscompressornode-internal-reduction-slot
|
||||
float m_reduction { 0 }; // [[internal reduction]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue