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

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: Remove outdated test 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
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); 121 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
122 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestrict ed float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh ); 122 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestrict ed float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh );
123 123
124 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy); 124 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy);
125 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); 125 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa ta imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
126 126
127 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLCanvasElement canvas, [TreatNullAs=NullString] DOMString repetitionType); 127 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLCanvasElement canvas, [TreatNullAs=NullString] DOMString repetitionType);
128 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLImageElement image, [TreatNullAs=NullString] DOMString repetitionType); 128 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLImageElement image, [TreatNullAs=NullString] DOMString repetitionType);
129 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLVideoElement image, [TreatNullAs=NullString] DOMString repetitionType); 129 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte rn(HTMLVideoElement image, [TreatNullAs=NullString] DOMString repetitionType);
130 [TypeChecking=Interface|Nullable] ImageData createImageData(ImageData imaged ata); 130 [TypeChecking=Interface|Nullable] ImageData createImageData(ImageData imaged ata);
131 [RaisesException] ImageData createImageData(float sw, float sh); 131 [RaisesException, TypeChecking=Unrestricted] ImageData createImageData(float sw, float sh);
132 132
133 [Custom] attribute object strokeStyle; 133 [Custom] attribute object strokeStyle;
134 [Custom] attribute object fillStyle; 134 [Custom] attribute object fillStyle;
135 135
136 // pixel manipulation 136 // pixel manipulation
137 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh); 137 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh);
138 138
139 // Focus rings 139 // Focus rings
140 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Element element); 140 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Element element);
141 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Path2D path, Element element); 141 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void drawFocusIfNeeded(Path2D path, Element element);
(...skipping 23 matching lines...) Expand all
165 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag eFromRect] void drawImageFromRect( 165 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag eFromRect] void drawImageFromRect(
166 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, 166 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh,
167 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); 167 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation);
168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, [LegacyOverloadSt ring] optional DOMString color, optional unrestricted float alpha); 168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, [LegacyOverloadSt ring] optional DOMString color, optional unrestricted float alpha);
169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha); 169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha);
170 [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); 170 [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);
171 [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); 171 [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);
172 }; 172 };
173 173
174 CanvasRenderingContext2D implements CanvasPathMethods; 174 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698