mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb: Implement DataTransferItemList.prototype.add()
This commit is contained in:
parent
b3bfd02e64
commit
74d9cfbf2a
Notes:
github-actions[bot]
2024-08-22 12:22:38 +00:00
Author: https://github.com/trflynn89
Commit: 74d9cfbf2a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158
Reviewed-by: https://github.com/shannonbooth
8 changed files with 126 additions and 3 deletions
|
@ -56,8 +56,12 @@ public:
|
|||
String get_data(String const& format) const;
|
||||
JS::NonnullGCPtr<FileAPI::FileList> files() const;
|
||||
|
||||
Optional<DragDataStore::Mode> mode() const;
|
||||
void disassociate_with_drag_data_store();
|
||||
|
||||
JS::NonnullGCPtr<DataTransferItem> add_item(DragDataStoreItem item);
|
||||
bool contains_item_with_type(DragDataStoreItem::Kind, String const& type) const;
|
||||
|
||||
private:
|
||||
DataTransfer(JS::Realm&, NonnullRefPtr<DragDataStore>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue