summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl')
-rw-r--r--chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl36
1 files changed, 28 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl b/chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl
index 7f244e10734..f095d8c13d2 100644
--- a/chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl
+++ b/chromium/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapFactories.idl
@@ -28,14 +28,34 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// http://www.whatwg.org/specs/web-apps/current-work/#imagebitmapfactories
+
+// FIXME: should use typedef instead, but
+// requires better union type support: http://crbug.com/240176
+/*
+typedef (// HTMLImageElement or
+ // HTMLVideoElement or
+ // HTMLCanvasElement or
+ Blob or
+ ImageData or
+ // CanvasRenderingContext2D or
+ ImageBitmap) ImageBitmapSource;
+*/
+
[
- NoInterfaceObject,
- RuntimeEnabled=ExperimentalCanvasFeatures
+ LegacyTreatAsPartialInterface,
+ NoInterfaceObject, // Always used on target of 'implements'
+ RuntimeEnabled=ExperimentalCanvasFeatures,
+ TypeChecking=Interface|Nullable,
] interface ImageBitmapFactories {
- [RaisesException] Promise createImageBitmap(Blob blob);
- [RaisesException] Promise createImageBitmap(Blob blob, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(ImageData data);
- [RaisesException] Promise createImageBitmap(ImageData data, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(ImageBitmap bitmap);
- [RaisesException] Promise createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh);
+ [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);
};
+
+Window implements ImageBitmapFactories;
+WorkerGlobalScope implements ImageBitmapFactories;
+