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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.idl

Issue 178673002: Rename Path to Path2D (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@path
Patch Set: Merge to head which includes isPoint and addPath changes. Created 6 years, 9 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
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/DOMPath.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 void setLineDash(sequence<float> dash); 59 void setLineDash(sequence<float> dash);
60 sequence<float> getLineDash(); 60 sequence<float> getLineDash();
61 attribute float lineDashOffset; 61 attribute float lineDashOffset;
62 62
63 void clearRect(float x, float y, float width, float height); 63 void clearRect(float x, float y, float width, float height);
64 void fillRect(float x, float y, float width, float height); 64 void fillRect(float x, float y, float width, float height);
65 65
66 void beginPath(); 66 void beginPath();
67 67
68 attribute Path currentPath; 68 attribute Path2D currentPath;
69 69
70 // FIXME: These methods should be shared with CanvasRenderingContext2D in th e CanvasPathMethods interface. 70 // FIXME: These methods should be shared with CanvasRenderingContext2D in th e CanvasPathMethods interface.
71 void closePath(); 71 void closePath();
72 void moveTo(float x, float y); 72 void moveTo(float x, float y);
73 void lineTo(float x, float y); 73 void lineTo(float x, float y);
74 void quadraticCurveTo(float cpx, float cpy, float x, float y); 74 void quadraticCurveTo(float cpx, float cpy, float x, float y);
75 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); 75 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y);
76 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); 76 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius);
77 void rect(float x, float y, float width, float height); 77 void rect(float x, float y, float width, float height);
78 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); 78 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
79 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona l boolean anticlockwise); 79 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona l boolean anticlockwise);
80 80
81 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 81 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
82 void fill(); 82 void fill();
83 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path? path); 83 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path2 D? path);
84 void fill(CanvasWindingRule winding); 84 void fill(CanvasWindingRule winding);
85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path? path, CanvasWindingRule winding); 85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path2 D? path, CanvasWindingRule winding);
86 void stroke(); 86 void stroke();
87 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void stroke(Pat h? path); 87 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void stroke(Pat h2D? path);
88 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 88 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
89 void clip(); 89 void clip();
90 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path); 90 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path2 D? path);
91 void clip(CanvasWindingRule winding); 91 void clip(CanvasWindingRule winding);
92 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path, CanvasWindingRule winding); 92 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path2 D? path, CanvasWindingRule winding);
93 93
94 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 94 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
95 boolean isPointInPath(float x, float y); 95 boolean isPointInPath(float x, float y);
96 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InPath(Path? path, float x, float y); 96 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InPath(Path2D? path, float x, float y);
97 boolean isPointInPath(float x, float y, CanvasWindingRule winding); 97 boolean isPointInPath(float x, float y, CanvasWindingRule winding);
98 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InPath(Path? path, float x, float y, CanvasWindingRule winding); 98 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InPath(Path2D? path, float x, float y, CanvasWindingRule winding);
99 99
100 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 100 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
101 boolean isPointInStroke(float x, float y); 101 boolean isPointInStroke(float x, float y);
102 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InStroke(Path? path, float x, float y); 102 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InStroke(Path2D? path, float x, float y);
103 103
104 // text 104 // text
105 attribute DOMString font; 105 attribute DOMString font;
106 attribute DOMString textAlign; 106 attribute DOMString textAlign;
107 attribute DOMString textBaseline; 107 attribute DOMString textBaseline;
108 108
109 TextMetrics measureText(DOMString text); 109 TextMetrics measureText(DOMString text);
110 110
111 // other 111 // other
112 112
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); 182 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element);
183 183
184 readonly attribute float webkitBackingStorePixelRatio; 184 readonly attribute float webkitBackingStorePixelRatio;
185 185
186 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; 186 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled;
187 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; 187 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled;
188 188
189 Canvas2DContextAttributes getContextAttributes(); 189 Canvas2DContextAttributes getContextAttributes();
190 }; 190 };
191 191
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/DOMPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698