mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Add an empty DataTransferItem IDL implementation
This commit is contained in:
parent
b6c99c27af
commit
9e3c6921ab
Notes:
github-actions[bot]
2024-08-19 11:31:06 +00:00
Author: https://github.com/trflynn89
Commit: 9e3c6921ab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1111
7 changed files with 79 additions and 0 deletions
29
Userland/Libraries/LibWeb/HTML/DataTransferItem.h
Normal file
29
Userland/Libraries/LibWeb/HTML/DataTransferItem.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-datatransferitem-interface
|
||||
class DataTransferItem : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(DataTransferItem, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(DataTransferItem);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<DataTransferItem> construct_impl(JS::Realm&);
|
||||
virtual ~DataTransferItem() override;
|
||||
|
||||
private:
|
||||
DataTransferItem(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue