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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 class CanvasRenderingContext2D final: public CanvasRenderingContext, public Scri
ptWrappable, public CanvasPathMethods { | 73 class CanvasRenderingContext2D final: public CanvasRenderingContext, public Scri
ptWrappable, public CanvasPathMethods { |
74 DEFINE_WRAPPERTYPEINFO(); | 74 DEFINE_WRAPPERTYPEINFO(); |
75 public: | 75 public: |
76 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2D> create(HTMLCanvasEle
ment* canvas, const Canvas2DContextAttributes* attrs, Document& document) | 76 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2D> create(HTMLCanvasEle
ment* canvas, const Canvas2DContextAttributes* attrs, Document& document) |
77 { | 77 { |
78 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs, do
cument)); | 78 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs, do
cument)); |
79 } | 79 } |
80 virtual ~CanvasRenderingContext2D(); | 80 virtual ~CanvasRenderingContext2D(); |
81 | 81 |
82 CanvasStyle* strokeStyle() const; | 82 void strokeStyle(StringOrCanvasGradientOrCanvasPattern&) const; |
83 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); | 83 void setStrokeStyle(const StringOrCanvasGradientOrCanvasPattern&); |
84 | 84 |
85 CanvasStyle* fillStyle() const; | 85 void fillStyle(StringOrCanvasGradientOrCanvasPattern&) const; |
86 void setFillStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); | 86 void setFillStyle(const StringOrCanvasGradientOrCanvasPattern&); |
87 | 87 |
88 float lineWidth() const; | 88 float lineWidth() const; |
89 void setLineWidth(float); | 89 void setLineWidth(float); |
90 | 90 |
91 String lineCap() const; | 91 String lineCap() const; |
92 void setLineCap(const String&); | 92 void setLineCap(const String&); |
93 | 93 |
94 String lineJoin() const; | 94 String lineJoin() const; |
95 void setLineJoin(const String&); | 95 void setLineJoin(const String&); |
96 | 96 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 360 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
361 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 361 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
362 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 362 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
363 }; | 363 }; |
364 | 364 |
365 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 365 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
366 | 366 |
367 } // namespace blink | 367 } // namespace blink |
368 | 368 |
369 #endif // CanvasRenderingContext2D_h | 369 #endif // CanvasRenderingContext2D_h |
OLD | NEW |