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

Unified Diff: sky/engine/core/html/canvas/CanvasRenderingContext2D.idl

Issue 936563002: Make tests/clipping/canvas-rounded-corners.sky actually run. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/css/CSS.idl ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/sky/engine/core/html/canvas/CanvasRenderingContext2D.idl b/sky/engine/core/html/canvas/CanvasRenderingContext2D.idl
index d50550df1c2f102c98d2b9938a6356361643ae10..df98d1a6e12b8642c5985dd18e78c336b3946190 100644
--- a/sky/engine/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/sky/engine/core/html/canvas/CanvasRenderingContext2D.idl
@@ -68,7 +68,8 @@ enum CanvasFillRule { "nonzero", "evenodd" };
CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1);
[RaisesException] CanvasGradient createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1);
[RaisesException] CanvasPattern createPattern(HTMLCanvasElement canvas, DOMString? repetitionType);
- [RaisesException] CanvasPattern createPattern(HTMLImageElement image, DOMString? repetitionType);
+ // Dart does not support overloads!
+ // [RaisesException] CanvasPattern createPattern(HTMLImageElement image, DOMString? repetitionType);
// shadows
attribute unrestricted float shadowOffsetX;
@@ -84,19 +85,19 @@ enum CanvasFillRule { "nonzero", "evenodd" };
// path API (see also CanvasPathMethods)
void beginPath();
void fill(optional CanvasFillRule winding);
- void fill(Path2D path, optional CanvasFillRule winding);
+ // void fill(Path2D path, optional CanvasFillRule winding);
void stroke();
- void stroke(Path2D path);
+ // void stroke(Path2D path);
// Focus rings
void drawFocusIfNeeded(Element element);
- void drawFocusIfNeeded(Path2D path, Element element);
+ // void drawFocusIfNeeded(Path2D path, Element element);
void clip(optional CanvasFillRule winding);
- void clip(Path2D path, optional CanvasFillRule winding);
+ // void clip(Path2D path, optional CanvasFillRule winding);
boolean isPointInPath(unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
- boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
+ // boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
boolean isPointInStroke(unrestricted float x, unrestricted float y);
- boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y);
+ // boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y);
// text (see also the CanvasDrawingStyles interface)
void fillText(DOMString text, unrestricted float x, unrestricted float y, optional unrestricted float maxWidth);
@@ -105,21 +106,21 @@ enum CanvasFillRule { "nonzero", "evenodd" };
// drawing images
[RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y);
- [RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
- [RaisesException] void drawImage(HTMLImageElement image, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
- [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted float x, unrestricted float y);
- [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
- [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
- [RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y);
- [RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
- [RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
+ //[RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
+ //[RaisesException] void drawImage(HTMLImageElement image, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
+ //[RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted float x, unrestricted float y);
+ //[RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
+ //[RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
+ // [RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y);
+ //[RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
+ //[RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
// pixel manipulation
ImageData createImageData(ImageData imagedata);
- [RaisesException] ImageData createImageData(float sw, float sh);
+ //[RaisesException] ImageData createImageData(float sw, float sh);
[RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh);
void putImageData(ImageData imagedata, float dx, float dy);
- void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
+ //void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
// Context state
// Should be merged with WebGL counterpart in CanvasRenderingContext, once no-longer experimental
@@ -135,8 +136,9 @@ enum CanvasFillRule { "nonzero", "evenodd" };
attribute unrestricted float miterLimit; // (default 10)
// dashed lines
- void setLineDash(sequence<unrestricted float> dash);
- sequence<unrestricted float> getLineDash();
+ // TODO(eseidel): Generator doesn't handle List<unrestricted float> yet.
+ // void setLineDash(sequence<unrestricted float> dash);
+ // sequence<unrestricted float> getLineDash();
attribute unrestricted float lineDashOffset;
// text
@@ -153,20 +155,20 @@ enum CanvasFillRule { "nonzero", "evenodd" };
void setMiterLimit(unrestricted float limit);
void clearShadow();
void setStrokeColor(DOMString color, optional unrestricted float alpha);
- void setStrokeColor(unrestricted float grayLevel, optional unrestricted float alpha);
- void setStrokeColor(unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
- void setStrokeColor(unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
+ //void setStrokeColor(unrestricted float grayLevel, optional unrestricted float alpha);
+ //void setStrokeColor(unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
+ //void setStrokeColor(unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
void setFillColor(DOMString color, optional unrestricted float alpha);
- void setFillColor(unrestricted float grayLevel, optional unrestricted float alpha);
- void setFillColor(unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
- void setFillColor(unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
+ //void setFillColor(unrestricted float grayLevel, optional unrestricted float alpha);
+ //void setFillColor(unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
+ //void setFillColor(unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
void drawImageFromRect(
HTMLImageElement? image, optional unrestricted float sx, optional unrestricted float sy, optional unrestricted float sw, optional unrestricted float sh,
optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compositeOperation);
void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, optional DOMString color, optional unrestricted float alpha);
- void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float grayLevel, optional unrestricted float alpha);
- void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
- void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
+ //void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float grayLevel, optional unrestricted float alpha);
+ //void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
+ //void setShadow(unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
};
CanvasRenderingContext2D implements CanvasPathMethods;
« no previous file with comments | « sky/engine/core/css/CSS.idl ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698