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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl

Issue 2526943002: Add use counters for lots of DOM APIs.
Patch Set: Add use counters for lots of DOM APIs. Created 4 years 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
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
index 8691a888fe4256ed0e34a9e888433e4e0eb4af36..f85a2ef190801b9090d18aa87a4c65ccd0099d8a 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
@@ -61,7 +61,7 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
// image smoothing
[MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothingEnabled; // (default True)
- attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low")
+ [Measure] attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low")
// colors and styles (see also the CanvasDrawingStyles interface)
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (default black)
@@ -84,25 +84,25 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
// path API (see also CanvasPathMethods)
void beginPath();
void fill(optional CanvasFillRule winding);
- void fill(Path2D path, optional CanvasFillRule winding);
+ [Measure] void fill(Path2D path, optional CanvasFillRule winding);
void stroke();
- void stroke(Path2D path);
+ [Measure] void stroke(Path2D path);
// Focus rings
- void drawFocusIfNeeded(Element element);
- void drawFocusIfNeeded(Path2D path, Element element);
+ [Measure] void drawFocusIfNeeded(Element element);
+ [Measure] void drawFocusIfNeeded(Path2D path, Element element);
[RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(optional Path2D path);
void clip(optional CanvasFillRule winding);
- void clip(Path2D path, optional CanvasFillRule winding);
+ [Measure] void clip(Path2D path, optional CanvasFillRule winding);
boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
- boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
- boolean isPointInStroke(unrestricted double x, unrestricted double y);
- boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
+ [Measure] boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
+ [Measure] boolean isPointInStroke(unrestricted double x, unrestricted double y);
+ [Measure] boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
// text (see also the CanvasDrawingStyles interface)
- void fillText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
- void strokeText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
- TextMetrics measureText(DOMString text);
+ [Measure] void fillText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
+ [Measure] void strokeText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
+ [Measure] TextMetrics measureText(DOMString text);
// drawing images
[CallWith=ExecutionContext, RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y);
@@ -135,15 +135,15 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
attribute unrestricted double miterLimit; // (default 10)
// dashed lines
- void setLineDash(sequence<unrestricted double> dash);
- sequence<unrestricted double> getLineDash();
- attribute unrestricted double lineDashOffset;
+ [Measure] void setLineDash(sequence<unrestricted double> dash);
+ [Measure] sequence<unrestricted double> getLineDash();
+ [Measure] attribute unrestricted double lineDashOffset;
// text
- 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")
+ [Measure] attribute DOMString font; // (default 10px sans-serif)
+ [Measure] attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
+ [Measure] attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
+ [Measure, RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; // "inherit", "rtl", "ltr" (default: "inherit")
};
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/CanvasPathMethods.idl ('k') | third_party/WebKit/Source/modules/crypto/Crypto.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698