mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
f87041bf3a
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
35 lines
996 B
C++
35 lines
996 B
C++
/*
|
|
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/DOM/Event.h>
|
|
#include <LibWeb/HTML/TimeRanges.h>
|
|
|
|
namespace Web::MediaSourceExtensions {
|
|
|
|
struct BufferedChangeEventInit : public DOM::EventInit {
|
|
GC::Ptr<HTML::TimeRanges> added_ranges;
|
|
GC::Ptr<HTML::TimeRanges> removed_ranges;
|
|
};
|
|
|
|
// https://w3c.github.io/media-source/#bufferedchangeevent-interface
|
|
class BufferedChangeEvent : public DOM::Event {
|
|
WEB_PLATFORM_OBJECT(BufferedChangeEvent, DOM::Event);
|
|
GC_DECLARE_ALLOCATOR(BufferedChangeEvent);
|
|
|
|
public:
|
|
[[nodiscard]] static WebIDL::ExceptionOr<GC::Ref<BufferedChangeEvent>> construct_impl(JS::Realm&, FlyString const& type, BufferedChangeEventInit const& = {});
|
|
|
|
private:
|
|
BufferedChangeEvent(JS::Realm&, FlyString const& type, BufferedChangeEventInit const& event_init);
|
|
|
|
virtual ~BufferedChangeEvent() override;
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
};
|
|
|
|
}
|