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

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

Issue 408813007: Remove non-standard API entry points in CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove some unnecessary mac/virtual/gpu baselines Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void setLineDash(sequence<unrestricted float> dash); 138 void setLineDash(sequence<unrestricted float> dash);
139 sequence<unrestricted float> getLineDash(); 139 sequence<unrestricted float> getLineDash();
140 attribute unrestricted float lineDashOffset; 140 attribute unrestricted float lineDashOffset;
141 141
142 // text 142 // text
143 attribute DOMString font; // (default 10px sans-serif) 143 attribute DOMString font; // (default 10px sans-serif)
144 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") 144 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
145 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic") 145 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic")
146 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit") 146 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit")
147 147
148 // Non-standard APIs. Candidates for deprecation
149 // https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D
150 [MeasureAs=CanvasRenderingContext2DSetAlpha] void setAlpha(unrestricted floa t alpha);
151 [MeasureAs=CanvasRenderingContext2DSetCompositeOperation] void setCompositeO peration(DOMString compositeOperation);
152 [MeasureAs=CanvasRenderingContext2DSetLineWidth] void setLineWidth(unrestric ted float width);
153 [MeasureAs=CanvasRenderingContext2DSetLineCap] void setLineCap(DOMString cap );
154 [MeasureAs=CanvasRenderingContext2DSetLineJoin] void setLineJoin(DOMString j oin);
155 [MeasureAs=CanvasRenderingContext2DSetMiterLimit] void setMiterLimit(unrestr icted float limit);
156 [MeasureAs=CanvasRenderingContext2DClearShadow] void clearShadow();
157 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(DOMSt ring color, optional unrestricted float alpha);
158 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(unres tricted float grayLevel, optional unrestricted float alpha);
159 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(unres tricted float r, unrestricted float g, unrestricted float b, unrestricted float a);
160 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(unres tricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a);
161 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(DOMString color, optional unrestricted float alpha);
162 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(unrestric ted float grayLevel, optional unrestricted float alpha);
163 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(unrestric ted float r, unrestricted float g, unrestricted float b, unrestricted float a);
164 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(unrestric ted float c, unrestricted float m, unrestricted float y, unrestricted float k, u nrestricted float a);
165 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect (
166 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh,
167 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation);
168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha);
169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha);
170 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t r, unrestricted float g, unrestricted float b, unrestricted float a);
171 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t c, unrestricted float m, unrestricted float y, unrestricted float k, unrestric ted float a);
172 }; 148 };
173 149
174 CanvasRenderingContext2D implements CanvasPathMethods; 150 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698