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

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

Issue 2708403003: Implement canvas color space IDL format for 2D canvas (Closed)
Patch Set: Addressing GPU pixel test failures Created 3 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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 [RaisesException] ImageData createImageData(ImageData imagedata); 118 [RaisesException] ImageData createImageData(ImageData imagedata);
119 [RaisesException] ImageData createImageData(double sw, double sh); 119 [RaisesException] ImageData createImageData(double sw, double sh);
120 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do uble sh); 120 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do uble sh);
121 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y); 121 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y);
122 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); 122 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
123 123
124 // Context state 124 // Context state
125 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental 125 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental
126 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); 126 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost();
127 127
128 Canvas2DContextAttributes getContextAttributes(); 128 CanvasRenderingContext2DSettings getContextAttributes();
129 129
130 // FIXME: factor out to CanvasDrawingStyles 130 // FIXME: factor out to CanvasDrawingStyles
131 // line caps/joins 131 // line caps/joins
132 attribute unrestricted double lineWidth; // (default 1) 132 attribute unrestricted double lineWidth; // (default 1)
133 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") 133 attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
134 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") 134 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
135 attribute unrestricted double miterLimit; // (default 10) 135 attribute unrestricted double miterLimit; // (default 10)
136 136
137 // dashed lines 137 // dashed lines
138 void setLineDash(sequence<unrestricted double> dash); 138 void setLineDash(sequence<unrestricted double> dash);
139 sequence<unrestricted double> getLineDash(); 139 sequence<unrestricted double> getLineDash();
140 attribute unrestricted double lineDashOffset; 140 attribute unrestricted double 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 }; 148 };
149 149
150 CanvasRenderingContext2D implements CanvasPathMethods; 150 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698