mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 02:54:54 +03:00
676fc5e8c6
And the two methods of `WindowOrWorkerGlobalScope` that are used as constructors for it.
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
#import <FileAPI/Blob.idl>
|
|
#import <HTML/ImageData.idl>
|
|
|
|
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#images-2
|
|
[Exposed=(Window,Worker), Serializable, Transferable]
|
|
interface ImageBitmap {
|
|
readonly attribute unsigned long width;
|
|
readonly attribute unsigned long height;
|
|
undefined close();
|
|
};
|
|
|
|
// FIXME: This should also includes CanvasImageSource
|
|
typedef (Blob or
|
|
ImageData) ImageBitmapSource;
|
|
|
|
enum ImageOrientation { "from-image", "flipY" };
|
|
enum PremultiplyAlpha { "none", "premultiply", "default" };
|
|
enum ColorSpaceConversion { "none", "default" };
|
|
enum ResizeQuality { "pixelated", "low", "medium", "high" };
|
|
|
|
dictionary ImageBitmapOptions {
|
|
// FIXME: ImageOrientation imageOrientation = "from-image";
|
|
// FIXME: PremultiplyAlpha premultiplyAlpha = "default";
|
|
// FIXME: ColorSpaceConversion colorSpaceConversion = "default";
|
|
// FIXME: [EnforceRange] unsigned long resizeWidth;
|
|
// FIXME: [EnforceRange] unsigned long resizeHeight;
|
|
// FIXME: ResizeQuality resizeQuality = "low";
|
|
};
|