mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
36
Libraries/LibWeb/FileAPI/FileReader.idl
Normal file
36
Libraries/LibWeb/FileAPI/FileReader.idl
Normal file
|
@ -0,0 +1,36 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
#import <FileAPI/Blob.idl>
|
||||
#import <WebIDL/DOMException.idl>
|
||||
|
||||
// https://w3c.github.io/FileAPI/#dfn-filereader
|
||||
[Exposed=(Window,Worker)]
|
||||
interface FileReader : EventTarget {
|
||||
constructor();
|
||||
// async read methods
|
||||
undefined readAsArrayBuffer(Blob blob);
|
||||
undefined readAsBinaryString(Blob blob);
|
||||
undefined readAsText(Blob blob, optional DOMString encoding);
|
||||
undefined readAsDataURL(Blob blob);
|
||||
|
||||
undefined abort();
|
||||
|
||||
// states
|
||||
const unsigned short EMPTY = 0;
|
||||
const unsigned short LOADING = 1;
|
||||
const unsigned short DONE = 2;
|
||||
|
||||
readonly attribute unsigned short readyState;
|
||||
|
||||
// File or Blob data
|
||||
readonly attribute (DOMString or ArrayBuffer)? result;
|
||||
|
||||
readonly attribute DOMException? error;
|
||||
|
||||
// event handler content attributes
|
||||
attribute EventHandler onloadstart;
|
||||
attribute EventHandler onprogress;
|
||||
attribute EventHandler onload;
|
||||
attribute EventHandler onabort;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onloadend;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue