mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Add an empty DataTransferItemList IDL implementation
This commit is contained in:
parent
9e3c6921ab
commit
dcb76572e4
Notes:
github-actions[bot]
2024-08-19 11:31:01 +00:00
Author: https://github.com/trflynn89
Commit: dcb76572e4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1111
7 changed files with 79 additions and 0 deletions
34
Userland/Libraries/LibWeb/HTML/DataTransferItemList.cpp
Normal file
34
Userland/Libraries/LibWeb/HTML/DataTransferItemList.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibJS/Runtime/Realm.h>
|
||||
#include <LibWeb/Bindings/DataTransferItemListPrototype.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/HTML/DataTransferItemList.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(DataTransferItemList);
|
||||
|
||||
JS::NonnullGCPtr<DataTransferItemList> DataTransferItemList::construct_impl(JS::Realm& realm)
|
||||
{
|
||||
return realm.heap().allocate<DataTransferItemList>(realm, realm);
|
||||
}
|
||||
|
||||
DataTransferItemList::DataTransferItemList(JS::Realm& realm)
|
||||
: PlatformObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
DataTransferItemList::~DataTransferItemList() = default;
|
||||
|
||||
void DataTransferItemList::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(DataTransferItemList);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue