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

Unified Diff: Source/modules/imagebitmap/WindowImageBitmapFactories.idl

Issue 23479016: Introduce Promise mapping to the IDL generator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add hasNoValue Created 7 years, 3 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 | « Source/modules/imagebitmap/ImageBitmapFactories.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/imagebitmap/WindowImageBitmapFactories.idl
diff --git a/Source/modules/imagebitmap/WindowImageBitmapFactories.idl b/Source/modules/imagebitmap/WindowImageBitmapFactories.idl
index 773445587b6a2a1d4f663c5ae9724898b1e9fc3e..c91ab89a119dac46c21849d09891f992fb9816db 100644
--- a/Source/modules/imagebitmap/WindowImageBitmapFactories.idl
+++ b/Source/modules/imagebitmap/WindowImageBitmapFactories.idl
@@ -28,19 +28,16 @@
* 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=ImageBitmapFactories,
EnabledAtRuntime=ExperimentalCanvasFeatures
] partial interface Window {
- [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);
+ [RaisesException] Promise createImageBitmap(HTMLImageElement image);
+ [RaisesException] Promise createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh);
+ [RaisesException] Promise createImageBitmap(HTMLVideoElement video);
+ [RaisesException] Promise createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh);
+ [RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context);
+ [RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh);
+ [RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas);
+ [RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh);
};
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698