mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Implement the DataTransferItemList length attribute
This commit is contained in:
committed by
Andreas Kling
parent
74d9cfbf2a
commit
843f8f04a5
@@ -9,6 +9,7 @@
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -21,6 +22,8 @@ public:
|
||||
static JS::NonnullGCPtr<DataTransferItemList> create(JS::Realm&, JS::NonnullGCPtr<DataTransfer>);
|
||||
virtual ~DataTransferItemList() override;
|
||||
|
||||
WebIDL::UnsignedLong length() const;
|
||||
|
||||
WebIDL::ExceptionOr<JS::GCPtr<DataTransferItem>> add(String const& data, String const& type);
|
||||
JS::GCPtr<DataTransferItem> add(JS::NonnullGCPtr<FileAPI::File>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user