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

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

Issue 259773008: Add support for type checking of floating point arguments as [TypeChecking=Unrestricted] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, float x, float y, floa t width, float height); 119 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, float x, float y, floa t width, float height);
120 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, float sx, float sy, fl oat sw, float sh, float dx, float dy, float dw, float dh); 120 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, float sx, float sy, fl oat sw, float sh, float dx, float dy, float dw, float dh);
121 121
122 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy); 122 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy);
123 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); 123 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
124 124
125 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLCanvasElement canvas, [TreatNullAs=NullString] DOMString repetitionType); 125 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLCanvasElement canvas, [TreatNullAs=NullString] DOMString repetitionType);
126 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLImageElement image, [TreatNullAs=NullString] DOMString repetitionType); 126 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLImageElement image, [TreatNullAs=NullString] DOMString repetitionType);
127 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLVideoElement image, [TreatNullAs=NullString] DOMString repetitionType); 127 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLVideoElement image, [TreatNullAs=NullString] DOMString repetitionType);
128 [TypeChecking=Interface|Nullable] ImageData createImageData(ImageData imaged ata); 128 [TypeChecking=Interface|Nullable] ImageData createImageData(ImageData imaged ata);
129 [RaisesException] ImageData createImageData(float sw, float sh); 129 [RaisesException, TypeChecking=Unrestricted] ImageData createImageData(float sw, float sh);
130 130
131 [Custom] attribute object strokeStyle; 131 [Custom] attribute object strokeStyle;
132 [Custom] attribute object fillStyle; 132 [Custom] attribute object fillStyle;
133 133
134 // pixel manipulation 134 // pixel manipulation
135 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh); 135 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh);
136 136
137 // Focus rings 137 // Focus rings
138 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Element element); 138 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Element element);
139 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Path2D path, Element element); 139 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Path2D path, Element element);
(...skipping 23 matching lines...) Expand all
163 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag eFromRect] void drawImageFromRect( 163 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag eFromRect] void drawImageFromRect(
164 HTMLImageElement? image, optional float sx, optional float sy, optional float sw, optional float sh, 164 HTMLImageElement? image, optional float sx, optional float sy, optional float sw, optional float sh,
165 optional float dx, optional float dy, optional float dw, optional float dh, optional DOMString compositeOperation); 165 optional float dx, optional float dy, optional float dw, optional float dh, optional DOMString compositeOperation);
166 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, [LegacyOverloadString] optional DOMString color, optiona l float alpha); 166 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, [LegacyOverloadString] optional DOMString color, optiona l float alpha);
167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float grayLevel, optional float alpha); 167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float grayLevel, optional float alpha);
168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float r, float g, float b, float a); 168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float r, float g, float b, float a);
169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float c, float m, float y, float k, float a); 169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float c, float m, float y, float k, float a);
170 }; 170 };
171 171
172 CanvasRenderingContext2D implements CanvasPathMethods; 172 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« Source/bindings/templates/methods.cpp ('K') | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698