Index: modules/imagebitmap/WindowImageBitmapFactories.idl |
diff --git a/modules/crypto/WindowCrypto.idl b/modules/imagebitmap/WindowImageBitmapFactories.idl |
similarity index 59% |
copy from modules/crypto/WindowCrypto.idl |
copy to modules/imagebitmap/WindowImageBitmapFactories.idl |
index 46ef6c4b039fbe298f3c8a1c71fd80f3ef58bb30..4d6ffbfd5bf5d48675a9f7525e089a82ada55cb5 100644 |
--- a/modules/crypto/WindowCrypto.idl |
+++ b/modules/imagebitmap/WindowImageBitmapFactories.idl |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * Copyright (c) 2013, Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,9 +28,19 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// FIXME: |PromiseValue| should be replaced with |Promise|. http://crbug.com/266700 |
+typedef any PromiseValue; |
+ |
[ |
- ImplementedAs=DOMWindowCrypto |
+ ImplementedAs=ImageBitmapFactories, |
+ EnabledAtRuntime=experimentalCanvasFeatures |
] partial interface Window { |
- readonly attribute Crypto crypto; |
+ [RaisesException] PromiseValue createImageBitmap(HTMLImageElement image); |
+ [RaisesException] PromiseValue createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh); |
+ [RaisesException] PromiseValue createImageBitmap(HTMLVideoElement video); |
+ [RaisesException] PromiseValue createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh); |
+ [RaisesException] PromiseValue createImageBitmap(CanvasRenderingContext2D context); |
+ [RaisesException] PromiseValue createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh); |
+ [RaisesException] PromiseValue createImageBitmap(HTMLCanvasElement canvas); |
+ [RaisesException] PromiseValue createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh); |
}; |
- |