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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class HTMLCanvasElement; | 60 class HTMLCanvasElement; |
61 class HTMLImageElement; | 61 class HTMLImageElement; |
62 class HTMLVideoElement; | 62 class HTMLVideoElement; |
63 class ImageBitmap; | 63 class ImageBitmap; |
64 class ImageData; | 64 class ImageData; |
65 class TextMetrics; | 65 class TextMetrics; |
66 | 66 |
67 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<MutableStylePropertySet> >
MutableStylePropertyMap; | 67 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<MutableStylePropertySet> >
MutableStylePropertyMap; |
68 | 68 |
69 class CanvasRenderingContext2D FINAL: public CanvasRenderingContext, public Scri
ptWrappable, public CanvasPathMethods { | 69 class CanvasRenderingContext2D FINAL: public CanvasRenderingContext, public Scri
ptWrappable, public CanvasPathMethods { |
| 70 DEFINE_WRAPPERTYPEINFO(); |
70 public: | 71 public: |
71 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2D> create(HTMLCanvasEle
ment* canvas, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityP
arseMode) | 72 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2D> create(HTMLCanvasEle
ment* canvas, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityP
arseMode) |
72 { | 73 { |
73 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs, us
esCSSCompatibilityParseMode)); | 74 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs, us
esCSSCompatibilityParseMode)); |
74 } | 75 } |
75 virtual ~CanvasRenderingContext2D(); | 76 virtual ~CanvasRenderingContext2D(); |
76 | 77 |
77 CanvasStyle* strokeStyle() const; | 78 CanvasStyle* strokeStyle() const; |
78 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); | 79 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); |
79 | 80 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 unsigned m_tryRestoreContextAttemptCount; | 380 unsigned m_tryRestoreContextAttemptCount; |
380 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 381 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
381 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 382 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
382 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 383 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
383 }; | 384 }; |
384 | 385 |
385 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 386 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
386 | 387 |
387 } // namespace blink | 388 } // namespace blink |
388 | 389 |
389 #endif | 390 #endif // CanvasRenderingContext2D_h |
OLD | NEW |