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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void setGlobalAlpha(float); | 115 void setGlobalAlpha(float); |
116 | 116 |
117 bool isContextLost() const; | 117 bool isContextLost() const; |
118 | 118 |
119 String globalCompositeOperation() const; | 119 String globalCompositeOperation() const; |
120 void setGlobalCompositeOperation(const String&); | 120 void setGlobalCompositeOperation(const String&); |
121 | 121 |
122 void save() { ++m_stateStack.last()->m_unrealizedSaveCount; } | 122 void save() { ++m_stateStack.last()->m_unrealizedSaveCount; } |
123 void restore(); | 123 void restore(); |
124 | 124 |
125 PassRefPtr<SVGMatrixTearOff> currentTransform() const | 125 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> currentTransform() const |
126 { | 126 { |
127 return SVGMatrixTearOff::create(state().m_transform); | 127 return SVGMatrixTearOff::create(state().m_transform); |
128 } | 128 } |
129 void setCurrentTransform(PassRefPtr<SVGMatrixTearOff>); | 129 void setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMatrixTearOff>); |
130 | 130 |
131 void scale(float sx, float sy); | 131 void scale(float sx, float sy); |
132 void rotate(float angleInRadians); | 132 void rotate(float angleInRadians); |
133 void translate(float tx, float ty); | 133 void translate(float tx, float ty); |
134 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); | 134 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); |
135 void setTransform(float m11, float m12, float m21, float m22, float dx, floa
t dy); | 135 void setTransform(float m11, float m12, float m21, float m22, float dx, floa
t dy); |
136 void resetTransform(); | 136 void resetTransform(); |
137 | 137 |
138 void setStrokeColor(const String& color); | 138 void setStrokeColor(const String& color); |
139 void setStrokeColor(float grayLevel); | 139 void setStrokeColor(float grayLevel); |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 378 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
379 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 379 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
380 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 380 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
381 }; | 381 }; |
382 | 382 |
383 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 383 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
384 | 384 |
385 } // namespace blink | 385 } // namespace blink |
386 | 386 |
387 #endif // CanvasRenderingContext2D_h | 387 #endif // CanvasRenderingContext2D_h |
OLD | NEW |