Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y); | 126 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y); |
| 127 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y, unrestricted float width, unrestricted float height); | 127 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y, unrestricted float width, unrestricted float height); |
| 128 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unres tricted float dx, unrestricted float dy, unrestricted float dw, unrestricted flo at dh); | 128 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unres tricted float dx, unrestricted float dy, unrestricted float dw, unrestricted flo at dh); |
| 129 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y); | 129 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y); |
| 130 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); | 130 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); |
| 131 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestr icted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh); | 131 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestr icted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh); |
| 132 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y); | 132 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y); |
| 133 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricte d float width, unrestricted float height); | 133 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricte d float width, unrestricted float height); |
| 134 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestric ted float sw, unrestricted float sh, unrestricted float dx, unrestricted float d y, unrestricted float dw, unrestricted float dh); | 134 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestric ted float sw, unrestricted float sh, unrestricted float dx, unrestricted float d y, unrestricted float dw, unrestricted float dh); |
| 135 | 135 |
| 136 // hit regions | |
| 137 // FIXME: Blink does not currently support WebIDL dictionary definitions. | |
| 138 // See http://crbug.com/321462 | |
| 139 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi on(optional Dictionary options); | |
| 140 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i d); | |
| 141 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions(); | |
| 142 // This attribute is supplied only for the purpose of testing. | |
| 143 [RuntimeEnabled=ExperimentalCanvasFeatures] readonly attribute unsigned shor t hitRegionsCount; | |
|
Rik
2014/06/02 22:57:40
will this be removed later then?
fs
2014/06/03 11:47:01
Move to Internals?
zino
2014/06/06 06:35:16
Done.
| |
| 144 | |
| 136 // pixel manipulation | 145 // pixel manipulation |
| 137 ImageData createImageData(ImageData imagedata); | 146 ImageData createImageData(ImageData imagedata); |
| 138 [RaisesException] ImageData createImageData(float sw, float sh); | 147 [RaisesException] ImageData createImageData(float sw, float sh); |
| 139 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh); | 148 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh); |
| 140 void putImageData(ImageData imagedata, float dx, float dy); | 149 void putImageData(ImageData imagedata, float dx, float dy); |
| 141 void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, flo at dirtyY, float dirtyWidth, float dirtyHeight); | 150 void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, flo at dirtyY, float dirtyWidth, float dirtyHeight); |
| 142 | 151 |
| 143 // Context state | 152 // Context state |
| 144 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental | 153 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental |
| 145 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); | 154 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect ( | 192 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect ( |
| 184 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, | 193 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, |
| 185 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); | 194 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); |
| 186 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha); | 195 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha); |
| 187 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha); | 196 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha); |
| 188 [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); | 197 [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); |
| 189 [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); | 198 [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); |
| 190 }; | 199 }; |
| 191 | 200 |
| 192 CanvasRenderingContext2D implements CanvasPathMethods; | 201 CanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |