mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb: Implement DataTransferItem.prototype.getAsFile()
This is used on imgur after drag-and-dropping an image onto its page.
This commit is contained in:
parent
6c9adf3dbc
commit
b978dba8bd
Notes:
github-actions[bot]
2024-08-23 09:11:45 +00:00
Author: https://github.com/trflynn89
Commit: b978dba8bd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1163
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 36 additions and 1 deletions
|
@ -25,6 +25,8 @@ public:
|
|||
String kind() const;
|
||||
String type() const;
|
||||
|
||||
JS::GCPtr<FileAPI::File> get_as_file() const;
|
||||
|
||||
private:
|
||||
DataTransferItem(JS::Realm&, JS::NonnullGCPtr<DataTransfer>, size_t item_index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue