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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl

Issue 1405963012: Remove [TreatNullAs=NullString] from attributes on CanvasRenderingContext2D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute SVGMatrix currentTrans form; 51 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute SVGMatrix currentTrans form;
52 void scale(unrestricted float x, unrestricted float y); 52 void scale(unrestricted float x, unrestricted float y);
53 void rotate(unrestricted float angle); 53 void rotate(unrestricted float angle);
54 void translate(unrestricted float x, unrestricted float y); 54 void translate(unrestricted float x, unrestricted float y);
55 void transform(unrestricted float a, unrestricted float b, unrestricted floa t c, unrestricted float d, unrestricted float e, unrestricted float f); 55 void transform(unrestricted float a, unrestricted float b, unrestricted floa t c, unrestricted float d, unrestricted float e, unrestricted float f);
56 void setTransform(unrestricted float a, unrestricted float b, unrestricted f loat c, unrestricted float d, unrestricted float e, unrestricted float f); 56 void setTransform(unrestricted float a, unrestricted float b, unrestricted f loat c, unrestricted float d, unrestricted float e, unrestricted float f);
57 void resetTransform(); 57 void resetTransform();
58 58
59 // compositing 59 // compositing
60 attribute unrestricted float globalAlpha; // (default 1.0) 60 attribute unrestricted float globalAlpha; // (default 1.0)
61 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; // (d efault source-over) 61 attribute DOMString globalCompositeOperation; // (default source-over)
62 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString filter; // ( default 'none') 62 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString filter; // ( default 'none')
63 63
64 // image smoothing 64 // image smoothing
65 [ImplementedAs=imageSmoothingEnabled, DeprecateAs=PrefixedImageSmoothingEnab led] attribute boolean webkitImageSmoothingEnabled; 65 [ImplementedAs=imageSmoothingEnabled, DeprecateAs=PrefixedImageSmoothingEnab led] attribute boolean webkitImageSmoothingEnabled;
66 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; // (default True) 66 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; // (default True)
67 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low") 67 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low")
68 68
69 // colors and styles (see also the CanvasDrawingStyles interface) 69 // colors and styles (see also the CanvasDrawingStyles interface)
70 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de fault black) 70 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de fault black)
71 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa ult black) 71 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa ult black)
72 CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1); 72 CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1);
73 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl oat r0, float x1, float y1, float r1); 73 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl oat r0, float x1, float y1, float r1);
74 [RaisesException] CanvasPattern createPattern(CanvasImageSource image, DOMSt ring? repetitionType); 74 [RaisesException] CanvasPattern createPattern(CanvasImageSource image, DOMSt ring? repetitionType);
75 75
76 // shadows 76 // shadows
77 attribute unrestricted float shadowOffsetX; 77 attribute unrestricted float shadowOffsetX;
78 attribute unrestricted float shadowOffsetY; 78 attribute unrestricted float shadowOffsetY;
79 attribute unrestricted float shadowBlur; 79 attribute unrestricted float shadowBlur;
80 [TreatNullAs=NullString] attribute DOMString shadowColor; 80 attribute DOMString shadowColor;
81 81
82 // rects 82 // rects
83 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height); 83 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height);
84 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); 84 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
85 void strokeRect(unrestricted float x, unrestricted float y, unrestricted flo at width, unrestricted float height); 85 void strokeRect(unrestricted float x, unrestricted float y, unrestricted flo at width, unrestricted float height);
86 86
87 // path API (see also CanvasPathMethods) 87 // path API (see also CanvasPathMethods)
88 void beginPath(); 88 void beginPath();
89 void fill(optional CanvasFillRule winding); 89 void fill(optional CanvasFillRule winding);
90 void fill(Path2D path, optional CanvasFillRule winding); 90 void fill(Path2D path, optional CanvasFillRule winding);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Context state 127 // Context state
128 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental 128 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental
129 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); 129 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost();
130 130
131 Canvas2DContextAttributes getContextAttributes(); 131 Canvas2DContextAttributes getContextAttributes();
132 132
133 // FIXME: factor out to CanvasDrawingStyles 133 // FIXME: factor out to CanvasDrawingStyles
134 // line caps/joins 134 // line caps/joins
135 attribute unrestricted float lineWidth; // (default 1) 135 attribute unrestricted float lineWidth; // (default 1)
136 [TreatNullAs=NullString] attribute DOMString lineCap; // "butt", "round", "s quare" (default "butt") 136 attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
137 [TreatNullAs=NullString] attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") 137 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
138 attribute unrestricted float miterLimit; // (default 10) 138 attribute unrestricted float miterLimit; // (default 10)
139 139
140 // dashed lines 140 // dashed lines
141 void setLineDash(sequence<unrestricted float> dash); 141 void setLineDash(sequence<unrestricted float> dash);
142 sequence<unrestricted float> getLineDash(); 142 sequence<unrestricted float> getLineDash();
143 attribute unrestricted float lineDashOffset; 143 attribute unrestricted float lineDashOffset;
144 144
145 // text 145 // text
146 attribute DOMString font; // (default 10px sans-serif) 146 attribute DOMString font; // (default 10px sans-serif)
147 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") 147 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
148 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic") 148 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic")
149 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit") 149 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit")
150 150
151 }; 151 };
152 152
153 CanvasRenderingContext2D implements CanvasPathMethods; 153 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698