OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef CanvasImageSource_h | 27 #ifndef CanvasImageSource_h |
28 #define CanvasImageSource_h | 28 #define CanvasImageSource_h |
29 | 29 |
30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
| 31 #include "platform/geometry/FloatSize.h" |
31 #include "platform/graphics/GraphicsTypes.h" | 32 #include "platform/graphics/GraphicsTypes.h" |
32 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
33 | 34 |
34 namespace blink { | 35 namespace blink { |
35 | 36 |
| 37 class FloatRect; |
36 class Image; | 38 class Image; |
37 class SecurityOrigin; | 39 class SecurityOrigin; |
38 | 40 |
39 enum SourceImageStatus { | 41 enum SourceImageStatus { |
40 NormalSourceImageStatus, | 42 NormalSourceImageStatus, |
41 UndecodableSourceImageStatus, // Image element with a 'broken' image | 43 UndecodableSourceImageStatus, // Image element with a 'broken' image |
42 ZeroSizeCanvasSourceImageStatus, // Source is a canvas with width or heigh of | 44 ZeroSizeCanvasSourceImageStatus, // Source is a canvas with width or heigh of |
43 // zero | 45 // zero |
44 IncompleteSourceImageStatus, // Image element with no source media | 46 IncompleteSourceImageStatus, // Image element with no source media |
45 InvalidSourceImageStatus, | 47 InvalidSourceImageStatus, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual int sourceWidth() = 0; | 85 virtual int sourceWidth() = 0; |
84 virtual int sourceHeight() = 0; | 86 virtual int sourceHeight() = 0; |
85 | 87 |
86 protected: | 88 protected: |
87 virtual ~CanvasImageSource() {} | 89 virtual ~CanvasImageSource() {} |
88 }; | 90 }; |
89 | 91 |
90 } // namespace blink | 92 } // namespace blink |
91 | 93 |
92 #endif | 94 #endif |
OLD | NEW |