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

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

Issue 287163007: WIP: <canvas> hit regions (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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 [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);
128 [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 x, unrestricted float y, unrestricted float width, unrestricted float height);
129 [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(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);
130 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y); 130 [RaisesException] void drawImage(HTMLVideoElement video, unrestricted float x, unrestricted float y);
131 [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 x, unrestricted float y, unrestricted float width, unrestricted float height);
132 [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 [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);
133 [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);
134 [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 x, unrestricted float y, unrestricte d float width, unrestricted float height);
135 [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 [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);
136 136
137 // hit regions (FIXME: s/Dictionary/HitRegionOptions/)
138 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi on(optional Dictionary options);
139 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i d);
140
137 // pixel manipulation 141 // pixel manipulation
138 ImageData createImageData(ImageData imagedata); 142 ImageData createImageData(ImageData imagedata);
139 [RaisesException] ImageData createImageData(float sw, float sh); 143 [RaisesException] ImageData createImageData(float sw, float sh);
140 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh); 144 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh);
141 void putImageData(ImageData imagedata, float dx, float dy); 145 void putImageData(ImageData imagedata, float dx, float dy);
142 void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, flo at dirtyY, float dirtyWidth, float dirtyHeight); 146 void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, flo at dirtyY, float dirtyWidth, float dirtyHeight);
143 147
144 // Context state 148 // Context state
145 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental 149 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental
146 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); 150 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect ( 188 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect (
185 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, 189 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh,
186 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); 190 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation);
187 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha); 191 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, optional DOMStrin g color, optional unrestricted float alpha);
188 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha); 192 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha);
189 [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); 193 [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);
190 [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); 194 [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);
191 }; 195 };
192 196
193 CanvasRenderingContext2D implements CanvasPathMethods; 197 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/rendering/RenderHTMLCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698