| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 void drawImage(const CanvasImageSourceUnion&, float x, float y, ExceptionSta
te&); | 153 void drawImage(const CanvasImageSourceUnion&, float x, float y, ExceptionSta
te&); |
| 154 void drawImage(const CanvasImageSourceUnion&, float x, float y, float width,
float height, ExceptionState&); | 154 void drawImage(const CanvasImageSourceUnion&, float x, float y, float width,
float height, ExceptionState&); |
| 155 void drawImage(const CanvasImageSourceUnion&, float sx, float sy, float sw,
float sh, float dx, float dy, float dw, float dh, ExceptionState&); | 155 void drawImage(const CanvasImageSourceUnion&, float sx, float sy, float sw,
float sh, float dx, float dy, float dw, float dh, ExceptionState&); |
| 156 void drawImage(CanvasImageSource*, float sx, float sy, float sw, float sh, f
loat dx, float dy, float dw, float dh, ExceptionState&); | 156 void drawImage(CanvasImageSource*, float sx, float sy, float sw, float sh, f
loat dx, float dy, float dw, float dh, ExceptionState&); |
| 157 | 157 |
| 158 PassRefPtrWillBeRawPtr<CanvasGradient> createLinearGradient(float x0, float
y0, float x1, float y1); | 158 PassRefPtrWillBeRawPtr<CanvasGradient> createLinearGradient(float x0, float
y0, float x1, float y1); |
| 159 PassRefPtrWillBeRawPtr<CanvasGradient> createRadialGradient(float x0, float
y0, float r0, float x1, float y1, float r1, ExceptionState&); | 159 PassRefPtrWillBeRawPtr<CanvasGradient> createRadialGradient(float x0, float
y0, float r0, float x1, float y1, float r1, ExceptionState&); |
| 160 PassRefPtrWillBeRawPtr<CanvasPattern> createPattern(const CanvasImageSourceU
nion&, const String& repetitionType, ExceptionState&); | 160 PassRefPtrWillBeRawPtr<CanvasPattern> createPattern(const CanvasImageSourceU
nion&, const String& repetitionType, ExceptionState&); |
| 161 | 161 |
| 162 PassRefPtrWillBeRawPtr<ImageData> createImageData(PassRefPtrWillBeRawPtr<Ima
geData>) const; | 162 ImageData* createImageData(ImageData*) const; |
| 163 PassRefPtrWillBeRawPtr<ImageData> createImageData(float width, float height,
ExceptionState&) const; | 163 ImageData* createImageData(float width, float height, ExceptionState&) const
; |
| 164 PassRefPtrWillBeRawPtr<ImageData> getImageData(float sx, float sy, float sw,
float sh, ExceptionState&) const; | 164 ImageData* getImageData(float sx, float sy, float sw, float sh, ExceptionSta
te&) const; |
| 165 void putImageData(ImageData*, float dx, float dy); | 165 void putImageData(ImageData*, float dx, float dy); |
| 166 void putImageData(ImageData*, float dx, float dy, float dirtyX, float dirtyY
, float dirtyWidth, float dirtyHeight); | 166 void putImageData(ImageData*, float dx, float dy, float dirtyX, float dirtyY
, float dirtyWidth, float dirtyHeight); |
| 167 | 167 |
| 168 void reset(); | 168 void reset(); |
| 169 | 169 |
| 170 String font() const; | 170 String font() const; |
| 171 void setFont(const String&); | 171 void setFont(const String&); |
| 172 | 172 |
| 173 String textAlign() const; | 173 String textAlign() const; |
| 174 void setTextAlign(const String&); | 174 void setTextAlign(const String&); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 300 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 301 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 301 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 302 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 302 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 305 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 306 | 306 |
| 307 } // namespace blink | 307 } // namespace blink |
| 308 | 308 |
| 309 #endif // CanvasRenderingContext2D_h | 309 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |