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

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

Issue 959933002: Move IDLs to 39 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
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 | « core/html/canvas/CanvasPattern.idl ('k') | core/html/canvas/HitRegionOptions.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/core/html/canvas/CanvasRenderingContext2D.idl b/core/html/canvas/CanvasRenderingContext2D.idl
index aa076cca2a10f71aaa6dac41e8dd9bc7643db8bd..b1eb216f331a1f2a9c8b0de96c551f56608ed682 100644
--- a/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/core/html/canvas/CanvasRenderingContext2D.idl
@@ -38,7 +38,7 @@ typedef (HTMLImageElement or
enum CanvasFillRule { "nonzero", "evenodd" };
[
- TypeChecking=Interface|Unrestricted,
+ TypeChecking=(Interface,Unrestricted),
WillBeGarbageCollected,
] interface CanvasRenderingContext2D {
// back-reference to the canvas
@@ -89,20 +89,20 @@ enum CanvasFillRule { "nonzero", "evenodd" };
// path API (see also CanvasPathMethods)
void beginPath();
void fill(optional CanvasFillRule winding);
- [RuntimeEnabled=Path2D] void fill(Path2D path, optional CanvasFillRule winding);
+ void fill(Path2D path, optional CanvasFillRule winding);
void stroke();
- [RuntimeEnabled=Path2D] void stroke(Path2D path);
+ void stroke(Path2D path);
// Focus rings
void drawFocusIfNeeded(Element element);
- [RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element);
+ void drawFocusIfNeeded(Path2D path, Element element);
[RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(optional Path2D path);
void clip(optional CanvasFillRule winding);
- [RuntimeEnabled=Path2D] 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);
- [RuntimeEnabled=Path2D] 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);
- [RuntimeEnabled=Path2D] 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);
@@ -124,9 +124,7 @@ enum CanvasFillRule { "nonzero", "evenodd" };
[RuntimeEnabled=ExperimentalCanvasFeatures, 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);
// hit regions
- // FIXME: Blink does not currently support WebIDL dictionary definitions.
- // See http://crbug.com/321462
- [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegion(optional Dictionary options);
+ [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegion(optional HitRegionOptions options);
[RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString id);
[RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions();
@@ -159,6 +157,7 @@ enum CanvasFillRule { "nonzero", "evenodd" };
attribute DOMString font; // (default 10px sans-serif)
attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
+ [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; // "inherit", "rtl", "ltr" (default: "inherit")
// Non-standard APIs. Candidates for deprecation
// https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D
« no previous file with comments | « core/html/canvas/CanvasPattern.idl ('k') | core/html/canvas/HitRegionOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698