mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +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
29
Userland/Libraries/LibWeb/HTML/DataTransferItemList.h
Normal file
29
Userland/Libraries/LibWeb/HTML/DataTransferItemList.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitemlist-interface
|
||||
class DataTransferItemList : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(DataTransferItemList, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(DataTransferItemList);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<DataTransferItemList> construct_impl(JS::Realm&);
|
||||
virtual ~DataTransferItemList() override;
|
||||
|
||||
private:
|
||||
DataTransferItemList(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue