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

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

Issue 179383002: Add versions of isPointIn*() that take a Path parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase again Created 6 years, 9 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
« 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path? path); 81 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path? path);
82 void fill(CanvasWindingRule winding); 82 void fill(CanvasWindingRule winding);
83 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path? path, CanvasWindingRule winding); 83 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path? path, CanvasWindingRule winding);
84 void stroke(); 84 void stroke();
85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void stroke(Pat h? path); 85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void stroke(Pat h? path);
86 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 86 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
87 void clip(); 87 void clip();
88 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path); 88 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path);
89 void clip(CanvasWindingRule winding); 89 void clip(CanvasWindingRule winding);
90 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path, CanvasWindingRule winding); 90 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path, CanvasWindingRule winding);
91 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); 91
92 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
93 boolean isPointInPath(float x, float y);
94 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InPath(Path? path, float x, float y);
95 boolean isPointInPath(float x, float y, CanvasWindingRule winding);
96 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InPath(Path? path, float x, float y, CanvasWindingRule winding);
97
98 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
92 boolean isPointInStroke(float x, float y); 99 boolean isPointInStroke(float x, float y);
100 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InStroke(Path? path, float x, float y);
93 101
94 // text 102 // text
95 attribute DOMString font; 103 attribute DOMString font;
96 attribute DOMString textAlign; 104 attribute DOMString textAlign;
97 attribute DOMString textBaseline; 105 attribute DOMString textBaseline;
98 106
99 TextMetrics measureText(DOMString text); 107 TextMetrics measureText(DOMString text);
100 108
101 // other 109 // other
102 110
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); 180 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element);
173 181
174 readonly attribute float webkitBackingStorePixelRatio; 182 readonly attribute float webkitBackingStorePixelRatio;
175 183
176 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; 184 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled;
177 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; 185 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled;
178 186
179 Canvas2DContextAttributes getContextAttributes(); 187 Canvas2DContextAttributes getContextAttributes();
180 }; 188 };
181 189
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