OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
43 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
44 | 44 |
45 namespace blink { class WebLayer; } | 45 namespace blink { class WebLayer; } |
46 | 46 |
47 namespace WebCore { | 47 namespace WebCore { |
48 | 48 |
49 class CanvasGradient; | 49 class CanvasGradient; |
50 class CanvasPattern; | 50 class CanvasPattern; |
51 class CanvasStyle; | 51 class CanvasStyle; |
52 class DOMPath; | 52 class DOMPath2D; |
53 class Element; | 53 class Element; |
54 class ExceptionState; | 54 class ExceptionState; |
55 class FloatRect; | 55 class FloatRect; |
56 class GraphicsContext; | 56 class GraphicsContext; |
57 class HTMLCanvasElement; | 57 class HTMLCanvasElement; |
58 class HTMLImageElement; | 58 class HTMLImageElement; |
59 class HTMLVideoElement; | 59 class HTMLVideoElement; |
60 class ImageBitmap; | 60 class ImageBitmap; |
61 class ImageData; | 61 class ImageData; |
62 class TextMetrics; | 62 class TextMetrics; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 void setFillColor(const String& color); | 139 void setFillColor(const String& color); |
140 void setFillColor(float grayLevel); | 140 void setFillColor(float grayLevel); |
141 void setFillColor(const String& color, float alpha); | 141 void setFillColor(const String& color, float alpha); |
142 void setFillColor(float grayLevel, float alpha); | 142 void setFillColor(float grayLevel, float alpha); |
143 void setFillColor(float r, float g, float b, float a); | 143 void setFillColor(float r, float g, float b, float a); |
144 void setFillColor(float c, float m, float y, float k, float a); | 144 void setFillColor(float c, float m, float y, float k, float a); |
145 | 145 |
146 void beginPath(); | 146 void beginPath(); |
147 | 147 |
148 PassRefPtr<DOMPath> currentPath(); | 148 PassRefPtr<DOMPath2D> currentPath(); |
149 void setCurrentPath(DOMPath*); | 149 void setCurrentPath(DOMPath2D*); |
150 void fill(const String& winding = "nonzero"); | 150 void fill(const String& winding = "nonzero"); |
151 void fill(DOMPath*, const String& winding = "nonzero"); | 151 void fill(DOMPath2D*, const String& winding = "nonzero"); |
152 void stroke(); | 152 void stroke(); |
153 void stroke(DOMPath*); | 153 void stroke(DOMPath2D*); |
154 void clip(const String& winding = "nonzero"); | 154 void clip(const String& winding = "nonzero"); |
155 void clip(DOMPath*, const String& winding = "nonzero"); | 155 void clip(DOMPath2D*, const String& winding = "nonzero"); |
156 | 156 |
157 bool isPointInPath(const float x, const float y, const String& winding = "no
nzero"); | 157 bool isPointInPath(const float x, const float y, const String& winding = "no
nzero"); |
158 bool isPointInStroke(const float x, const float y); | 158 bool isPointInStroke(const float x, const float y); |
159 | 159 |
160 void clearRect(float x, float y, float width, float height); | 160 void clearRect(float x, float y, float width, float height); |
161 void fillRect(float x, float y, float width, float height); | 161 void fillRect(float x, float y, float width, float height); |
162 void strokeRect(float x, float y, float width, float height); | 162 void strokeRect(float x, float y, float width, float height); |
163 | 163 |
164 void setShadow(float width, float height, float blur); | 164 void setShadow(float width, float height, float blur); |
165 void setShadow(float width, float height, float blur, const String& color); | 165 void setShadow(float width, float height, float blur, const String& color); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 bool m_usesCSSCompatibilityParseMode; | 337 bool m_usesCSSCompatibilityParseMode; |
338 bool m_hasAlpha; | 338 bool m_hasAlpha; |
339 MutableStylePropertyMap m_fetchedFonts; | 339 MutableStylePropertyMap m_fetchedFonts; |
340 }; | 340 }; |
341 | 341 |
342 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 342 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
343 | 343 |
344 } // namespace WebCore | 344 } // namespace WebCore |
345 | 345 |
346 #endif | 346 #endif |
OLD | NEW |