Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl |
diff --git a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.idl b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl |
similarity index 59% |
rename from third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.idl |
rename to third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl |
index be5bf9128569e7bf0702354f142c44a037338a56..f8ef3a3f186d775dbaef1db4b244572fc4566e5e 100644 |
--- a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.idl |
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl |
@@ -2,6 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// Note: If there're more context types implemented, they should be added here |
+// to form a union type of OffscreenCanvasRenderingContext |
+typedef OffscreenCanvasRenderingContext2D OffscreenCanvasRenderingContext; |
Justin Novosad
2016/03/07 15:30:26
We should call this enum just "OffscreenRenderingC
|
+ |
[ |
Constructor([EnforceRange] unsigned long width, [EnforceRange] unsigned long height), |
GarbageCollected, |
@@ -10,4 +14,6 @@ |
] interface OffscreenCanvas { |
[EnforceRange] attribute unsigned long width; |
[EnforceRange] attribute unsigned long height; |
+ |
+ OffscreenCanvasRenderingContext? getContext(DOMString contextId, optional CanvasContextCreationAttributes attributes); |
}; |