1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibWeb: Introduce the File interface from the FileAPI spec

This commit is contained in:
Kenneth Myhra 2022-07-24 21:32:18 +02:00 committed by Linus Groh
parent df91dbfbb6
commit 890514a057
9 changed files with 139 additions and 0 deletions

View file

@ -52,6 +52,11 @@ Blob::Blob(ByteBuffer byte_buffer, String type)
{
}
Blob::Blob(ByteBuffer byte_buffer)
: m_byte_buffer(move(byte_buffer))
{
}
// https://w3c.github.io/FileAPI/#ref-for-dom-blob-blob
DOM::ExceptionOr<NonnullRefPtr<Blob>> Blob::create(Optional<Vector<BlobPart>> const& blob_parts, Optional<BlobPropertyBag> const& options)
{