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

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

Issue 211503006: Implementation of 2D canvas context lost/restored events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 8 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 boolean isPointInStroke(float x, float y); 90 boolean isPointInStroke(float x, float y);
91 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InStroke(Path2D? path, float x, float y); 91 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint InStroke(Path2D? path, float x, float y);
92 92
93 // text 93 // text
94 attribute DOMString font; 94 attribute DOMString font;
95 attribute DOMString textAlign; 95 attribute DOMString textAlign;
96 attribute DOMString textBaseline; 96 attribute DOMString textBaseline;
97 97
98 TextMetrics measureText(DOMString text); 98 TextMetrics measureText(DOMString text);
99 99
100 // Context state
101 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental
102 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost();
103
100 // other 104 // other
101 105
102 void setAlpha(float alpha); 106 void setAlpha(float alpha);
103 void setCompositeOperation(DOMString compositeOperation); 107 void setCompositeOperation(DOMString compositeOperation);
104 108
105 void setLineWidth(float width); 109 void setLineWidth(float width);
106 void setLineCap(DOMString cap); 110 void setLineCap(DOMString cap);
107 void setLineJoin(DOMString join); 111 void setLineJoin(DOMString join);
108 void setMiterLimit(float limit); 112 void setMiterLimit(float limit);
109 113
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e lement); 170 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e lement);
167 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); 171 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element);
168 172
169 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; 173 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled;
170 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; 174 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled;
171 175
172 Canvas2DContextAttributes getContextAttributes(); 176 Canvas2DContextAttributes getContextAttributes();
173 }; 177 };
174 178
175 CanvasRenderingContext2D implements CanvasPathMethods; 179 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698