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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.idl

Issue 2826773002: Rename CanvasPathMethods to CanvasPath (Closed)
Patch Set: x Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://drafts.css-houdini.org/css-paint-api/#paintrenderingcontext2d 5 // https://drafts.css-houdini.org/css-paint-api/#paintrenderingcontext2d
6 6
7 [ 7 [
8 Exposed=PaintWorklet, 8 Exposed=PaintWorklet,
9 RuntimeEnabled=CSSPaintAPI, 9 RuntimeEnabled=CSSPaintAPI,
10 ] interface PaintRenderingContext2D { 10 ] interface PaintRenderingContext2D {
(...skipping 29 matching lines...) Expand all
40 attribute unrestricted double shadowOffsetX; 40 attribute unrestricted double shadowOffsetX;
41 attribute unrestricted double shadowOffsetY; 41 attribute unrestricted double shadowOffsetY;
42 attribute unrestricted double shadowBlur; 42 attribute unrestricted double shadowBlur;
43 attribute DOMString shadowColor; 43 attribute DOMString shadowColor;
44 44
45 // rects 45 // rects
46 void clearRect(unrestricted double x, unrestricted double y, unrestricted do uble width, unrestricted double height); 46 void clearRect(unrestricted double x, unrestricted double y, unrestricted do uble width, unrestricted double height);
47 void fillRect(unrestricted double x, unrestricted double y, unrestricted dou ble width, unrestricted double height); 47 void fillRect(unrestricted double x, unrestricted double y, unrestricted dou ble width, unrestricted double height);
48 void strokeRect(unrestricted double x, unrestricted double y, unrestricted d ouble width, unrestricted double height); 48 void strokeRect(unrestricted double x, unrestricted double y, unrestricted d ouble width, unrestricted double height);
49 49
50 // path API (see also CanvasPathMethods) 50 // path API (see also CanvasPath)
51 void beginPath(); 51 void beginPath();
52 void fill(optional CanvasFillRule winding); 52 void fill(optional CanvasFillRule winding);
53 void fill(Path2D path, optional CanvasFillRule winding); 53 void fill(Path2D path, optional CanvasFillRule winding);
54 void stroke(); 54 void stroke();
55 void stroke(Path2D path); 55 void stroke(Path2D path);
56 56
57 void clip(optional CanvasFillRule winding); 57 void clip(optional CanvasFillRule winding);
58 void clip(Path2D path, optional CanvasFillRule winding); 58 void clip(Path2D path, optional CanvasFillRule winding);
59 boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule winding); 59 boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule winding);
60 boolean isPointInPath(Path2D path, unrestricted double x, unrestricted doubl e y, optional CanvasFillRule winding); 60 boolean isPointInPath(Path2D path, unrestricted double x, unrestricted doubl e y, optional CanvasFillRule winding);
(...skipping 10 matching lines...) Expand all
71 attribute unrestricted double lineWidth; // (default 1) 71 attribute unrestricted double lineWidth; // (default 1)
72 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") 72 attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
73 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") 73 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
74 attribute unrestricted double miterLimit; // (default 10) 74 attribute unrestricted double miterLimit; // (default 10)
75 75
76 // dashed lines 76 // dashed lines
77 void setLineDash(sequence<unrestricted double> dash); 77 void setLineDash(sequence<unrestricted double> dash);
78 sequence<unrestricted double> getLineDash(); 78 sequence<unrestricted double> getLineDash();
79 attribute unrestricted double lineDashOffset; 79 attribute unrestricted double lineDashOffset;
80 }; 80 };
81 PaintRenderingContext2D implements CanvasPathMethods; 81 PaintRenderingContext2D implements CanvasPath;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/Path2D.idl ('k') | third_party/WebKit/Source/modules/modules_idl_files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698