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

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

Issue 2797213002: Fix BaseRenderingContext2D create/put/get-ImageData() for color managed canvas (Closed)
Patch Set: Rebaseline Created 3 years, 7 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi on(optional HitRegionOptions options); 122 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi on(optional HitRegionOptions options);
123 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i d); 123 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i d);
124 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions(); 124 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions();
125 125
126 // pixel manipulation 126 // pixel manipulation
127 [RaisesException] ImageData createImageData(ImageData imagedata); 127 [RaisesException] ImageData createImageData(ImageData imagedata);
128 [RaisesException] ImageData createImageData(long sw, long sh); 128 [RaisesException] ImageData createImageData(long sw, long sh);
129 [RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh) ; 129 [RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh) ;
130 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy); 130 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy);
131 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, l ong dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight); 131 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, l ong dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight);
132
133 // https://github.com/WICG/canvas-color-space/blob/master/CanvasColorSpacePr oposal.md
134 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData creat eImageData(unsigned long sw, unsigned long sh, ImageDataColorSettings imageDataC olorSettings);
135 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData creat eImageData(ImageDataArray data, unsigned long sw, unsigned long sh, optional Ima geDataColorSettings imageDataColorSettings);
132 136
133 // Context state 137 // Context state
134 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental 138 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental
135 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); 139 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost();
136 140
137 [RuntimeEnabled=ExperimentalCanvasFeatures, MeasureAs=GetCanvas2DContextAttr ibutes] CanvasRenderingContext2DSettings getContextAttributes(); 141 [RuntimeEnabled=ExperimentalCanvasFeatures, MeasureAs=GetCanvas2DContextAttr ibutes] CanvasRenderingContext2DSettings getContextAttributes();
138 142
139 // FIXME: factor out to CanvasDrawingStyles 143 // FIXME: factor out to CanvasDrawingStyles
140 // line caps/joins 144 // line caps/joins
141 attribute unrestricted double lineWidth; // (default 1) 145 attribute unrestricted double lineWidth; // (default 1)
142 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") 146 attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
143 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") 147 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
144 attribute unrestricted double miterLimit; // (default 10) 148 attribute unrestricted double miterLimit; // (default 10)
145 149
146 // dashed lines 150 // dashed lines
147 void setLineDash(sequence<unrestricted double> dash); 151 void setLineDash(sequence<unrestricted double> dash);
148 sequence<unrestricted double> getLineDash(); 152 sequence<unrestricted double> getLineDash();
149 attribute unrestricted double lineDashOffset; 153 attribute unrestricted double lineDashOffset;
150 154
151 // text 155 // text
152 attribute DOMString font; // (default 10px sans-serif) 156 attribute DOMString font; // (default 10px sans-serif)
153 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") 157 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
154 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic") 158 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic")
155 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit") 159 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit")
156 160
157 }; 161 };
158 162
159 CanvasRenderingContext2D implements CanvasPath; 163 CanvasRenderingContext2D implements CanvasPath;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698