Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3181)

Unified Diff: core/imagebitmap/ImageBitmapFactories.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/html/track/vtt/VTTRegionList.idl ('k') | core/imagebitmap/ImageBitmapOptions.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/imagebitmap/ImageBitmapFactories.idl
diff --git a/core/imagebitmap/ImageBitmapFactories.idl b/core/imagebitmap/ImageBitmapFactories.idl
index 376fafa1c0e090d170d1709c5b7d61ef9b81ace7..02b3425e417257d4f5b401faf374a8a9336bc00b 100644
--- a/core/imagebitmap/ImageBitmapFactories.idl
+++ b/core/imagebitmap/ImageBitmapFactories.idl
@@ -30,31 +30,24 @@
// https://html.spec.whatwg.org/#imagebitmapfactories
-// FIXME: should use typedef instead, but
-// requires better union type support: http://crbug.com/240176
-/*
-typedef (// HTMLImageElement or
- // HTMLVideoElement or
- // HTMLCanvasElement or
+typedef (HTMLImageElement or
+ HTMLVideoElement or
+ HTMLCanvasElement or
Blob or
ImageData or
- // CanvasRenderingContext2D or
ImageBitmap) ImageBitmapSource;
-*/
[
LegacyTreatAsPartialInterface,
NoInterfaceObject, // Always used on target of 'implements'
Exposed=(Window,Worker),
- RuntimeEnabled=ExperimentalCanvasFeatures,
- TypeChecking=Interface,
] interface ImageBitmapFactories {
- [CallWith=ScriptState, RaisesException] Promise createImageBitmap(Blob blob);
- [CallWith=ScriptState, RaisesException] Promise createImageBitmap(Blob blob, long sx, long sy, long sw, long sh);
- [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageData data);
- [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageData data, long sx, long sy, long sw, long sh);
- [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmap bitmap);
- [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmapSource imageBitmap);
+ [CallWith=ScriptState, RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] Promise createImageBitmap(
+ ImageBitmapSource imageBitmap, ImageBitmapOptions options);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmapSource imageBitmap, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] Promise createImageBitmap(
+ ImageBitmapSource imageBitmap, long sx, long sy, long sw, long sh, ImageBitmapOptions options);
};
Window implements ImageBitmapFactories;
« no previous file with comments | « core/html/track/vtt/VTTRegionList.idl ('k') | core/imagebitmap/ImageBitmapOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698