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

Side by Side Diff: sky/engine/core/html/canvas/CanvasRenderingContext2D.idl

Issue 701663002: Remove HTMLVideoElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen t.html#canvasrenderingcontext2d 26 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen t.html#canvasrenderingcontext2d
27 27
28 // FIXME: float => double throughout 28 // FIXME: float => double throughout
29 // FIXME: Use union type in drawImage and createPattern once supported: 29 // FIXME: Use union type in drawImage and createPattern once supported:
30 // http://crbug.com/372891 30 // http://crbug.com/372891
31 typedef (HTMLImageElement or 31 typedef (HTMLImageElement or
32 HTMLVideoElement or
33 HTMLCanvasElement // or 32 HTMLCanvasElement // or
34 // CanvasRenderingContext2D or 33 // CanvasRenderingContext2D or
35 // ImageBitmap 34 // ImageBitmap
36 ) CanvasImageSource; 35 ) CanvasImageSource;
37 36
38 enum CanvasFillRule { "nonzero", "evenodd" }; 37 enum CanvasFillRule { "nonzero", "evenodd" };
39 38
40 [ 39 [
41 TypeChecking=(Interface,Unrestricted), 40 TypeChecking=(Interface,Unrestricted),
42 ] interface CanvasRenderingContext2D { 41 ] interface CanvasRenderingContext2D {
(...skipping 20 matching lines...) Expand all
63 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; 62 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled;
64 63
65 // colors and styles (see also the CanvasDrawingStyles interface) 64 // colors and styles (see also the CanvasDrawingStyles interface)
66 // FIXME: Use union types when supported: http://crbug.com/372891 65 // FIXME: Use union types when supported: http://crbug.com/372891
67 [Custom] attribute object strokeStyle; // (default black) 66 [Custom] attribute object strokeStyle; // (default black)
68 [Custom] attribute object fillStyle; // (default black) 67 [Custom] attribute object fillStyle; // (default black)
69 CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1); 68 CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1);
70 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl oat r0, float x1, float y1, float r1); 69 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl oat r0, float x1, float y1, float r1);
71 [RaisesException] CanvasPattern createPattern(HTMLCanvasElement canvas, DOMS tring? repetitionType); 70 [RaisesException] CanvasPattern createPattern(HTMLCanvasElement canvas, DOMS tring? repetitionType);
72 [RaisesException] CanvasPattern createPattern(HTMLImageElement image, DOMStr ing? repetitionType); 71 [RaisesException] CanvasPattern createPattern(HTMLImageElement image, DOMStr ing? repetitionType);
73 [RaisesException] CanvasPattern createPattern(HTMLVideoElement image, DOMStr ing? repetitionType);
74 72
75 // shadows 73 // shadows
76 attribute unrestricted float shadowOffsetX; 74 attribute unrestricted float shadowOffsetX;
77 attribute unrestricted float shadowOffsetY; 75 attribute unrestricted float shadowOffsetY;
78 attribute unrestricted float shadowBlur; 76 attribute unrestricted float shadowBlur;
79 [TreatNullAs=NullString] attribute DOMString shadowColor; 77 [TreatNullAs=NullString] attribute DOMString shadowColor;
80 78
81 // rects 79 // rects
82 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height); 80 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height);
83 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); 81 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
(...skipping 22 matching lines...) Expand all
106 void strokeText(DOMString text, unrestricted float x, unrestricted float y, optional unrestricted float maxWidth); 104 void strokeText(DOMString text, unrestricted float x, unrestricted float y, optional unrestricted float maxWidth);
107 TextMetrics measureText(DOMString text); 105 TextMetrics measureText(DOMString text);
108 106
109 // drawing images 107 // drawing images
110 [RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y); 108 [RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y);
111 [RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); 109 [RaisesException] void drawImage(HTMLImageElement image, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
112 [RaisesException] void drawImage(HTMLImageElement image, 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); 110 [RaisesException] void drawImage(HTMLImageElement image, 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);
113 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y); 111 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y);
114 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y, unrestricted float width, unrestricted float height); 112 [RaisesException] void drawImage(HTMLCanvasElement canvas, unrestricted floa t x, unrestricted float y, unrestricted float width, unrestricted float height);
115 [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); 113 [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);
116 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y);
117 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
118 [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);
119 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y); 114 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y);
120 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricte d float width, unrestricted float height); 115 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage( ImageBitmap imageBitmap, unrestricted float x, unrestricted float y, unrestricte d float width, unrestricted float height);
121 [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); 116 [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);
122 117
123 // hit regions 118 // hit regions
124 // FIXME: Blink does not currently support WebIDL dictionary definitions. 119 // FIXME: Blink does not currently support WebIDL dictionary definitions.
125 // See http://crbug.com/321462 120 // See http://crbug.com/321462
126 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi on(optional Dictionary options); 121 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi on(optional Dictionary options);
127 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i d); 122 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i d);
128 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions(); 123 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect ( 173 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect (
179 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, 174 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh,
180 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); 175 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation);
181 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha); 176 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha);
182 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha); 177 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha);
183 [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); 178 [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);
184 [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); 179 [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);
185 }; 180 };
186 181
187 CanvasRenderingContext2D implements CanvasPathMethods; 182 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | sky/engine/core/html/canvas/WebGLRenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698