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

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

Issue 752083003: Use IDL union types for CanvasRenderingContext2D.{fill,stroke}Style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // compositing 57 // compositing
58 attribute unrestricted float globalAlpha; // (default 1.0) 58 attribute unrestricted float globalAlpha; // (default 1.0)
59 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; // (d efault source-over) 59 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; // (d efault source-over)
60 60
61 // image smoothing 61 // image smoothing
62 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; 62 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled;
63 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; 63 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled;
64 64
65 // colors and styles (see also the CanvasDrawingStyles interface) 65 // colors and styles (see also the CanvasDrawingStyles interface)
66 // FIXME: Use union types when supported: http://crbug.com/372891 66 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de fault black)
fs 2014/11/24 13:20:24 This bug seems to have some sort Restrict* label s
Jens Widell 2014/11/24 13:38:24 That's an unrelated crash bug (CC:ed oilpan-review
fs 2014/11/24 13:49:07 Thanks, that's the info I was probing for. As disc
67 [Custom] attribute object strokeStyle; // (default black) 67 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa ult black)
68 [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(CanvasImageSource image, DOMSt ring? repetitionType); 70 [RaisesException] CanvasPattern createPattern(CanvasImageSource image, DOMSt ring? repetitionType);
72 71
73 // shadows 72 // shadows
74 attribute unrestricted float shadowOffsetX; 73 attribute unrestricted float shadowOffsetX;
75 attribute unrestricted float shadowOffsetY; 74 attribute unrestricted float shadowOffsetY;
76 attribute unrestricted float shadowBlur; 75 attribute unrestricted float shadowBlur;
77 [TreatNullAs=NullString] attribute DOMString shadowColor; 76 [TreatNullAs=NullString] attribute DOMString shadowColor;
78 77
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 140
142 // text 141 // text
143 attribute DOMString font; // (default 10px sans-serif) 142 attribute DOMString font; // (default 10px sans-serif)
144 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") 143 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
145 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic") 144 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic")
146 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit") 145 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit")
147 146
148 }; 147 };
149 148
150 CanvasRenderingContext2D implements CanvasPathMethods; 149 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698