Index: core/page/ImageBitmapFactories.idl |
diff --git a/core/html/canvas/ANGLEInstancedArrays.idl b/core/page/ImageBitmapFactories.idl |
similarity index 54% |
copy from core/html/canvas/ANGLEInstancedArrays.idl |
copy to core/page/ImageBitmapFactories.idl |
index 2d257cce1b95600236192f9d02a397637b650ed2..65c0dc6c549e745ac0aa40e48e47f3fd08399998 100644 |
--- a/core/html/canvas/ANGLEInstancedArrays.idl |
+++ b/core/page/ImageBitmapFactories.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 |
@@ -30,11 +30,19 @@ |
[ |
NoInterfaceObject, |
- DoNotCheckConstants |
-] interface ANGLEInstancedArrays { |
- const unsigned long VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; |
- |
- [StrictTypeChecking] void drawArraysInstancedANGLE(unsigned long mode, long first, long count, long primcount); |
- [StrictTypeChecking] void drawElementsInstancedANGLE(unsigned long mode, long count, unsigned long type, long long offset, long primcount); |
- [StrictTypeChecking] void vertexAttribDivisorANGLE(unsigned long index, long divisor); |
-}; |
+ EnabledAtRuntime=experimentalCanvasFeatures |
+] interface ImageBitmapFactories { |
+ // FIXME: these methods should return |Promise|. http://crbug.com/266700 |
+ [RaisesException] any createImageBitmap(HTMLImageElement image); |
+ [RaisesException] any createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh); |
+ [RaisesException] any createImageBitmap(HTMLVideoElement video); |
+ [RaisesException] any createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh); |
+ [RaisesException] any createImageBitmap(CanvasRenderingContext2D context); |
+ [RaisesException] any createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh); |
+ [RaisesException] any createImageBitmap(HTMLCanvasElement canvas); |
+ [RaisesException] any createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh); |
+ [RaisesException] any createImageBitmap(ImageData data); |
+ [RaisesException] any createImageBitmap(ImageData data, long sx, long sy, long sw, long sh); |
+ [RaisesException] any createImageBitmap(ImageBitmap bitmap); |
+ [RaisesException] any createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh); |
+}; |