OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
4 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ~BitmapImage() override; | 58 ~BitmapImage() override; |
59 | 59 |
60 bool isBitmapImage() const override { return true; } | 60 bool isBitmapImage() const override { return true; } |
61 | 61 |
62 bool currentFrameHasSingleSecurityOrigin() const override; | 62 bool currentFrameHasSingleSecurityOrigin() const override; |
63 | 63 |
64 IntSize size() const override; | 64 IntSize size() const override; |
65 IntSize sizeRespectingOrientation() const; | 65 IntSize sizeRespectingOrientation() const; |
66 bool getHotSpot(IntPoint&) const override; | 66 bool getHotSpot(IntPoint&) const override; |
67 String filenameExtension() const override; | 67 String filenameExtension() const override; |
68 bool setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) override; | 68 |
69 bool dataChanged(bool allDataReceived) override; | 69 SizeAvailability setData(PassRefPtr<SharedBuffer> data, bool allDataReceived
) override; |
| 70 SizeAvailability dataChanged(bool allDataReceived) override; |
70 | 71 |
71 bool isAllDataReceived() const { return m_allDataReceived; } | 72 bool isAllDataReceived() const { return m_allDataReceived; } |
72 bool hasColorProfile() const; | 73 bool hasColorProfile() const; |
73 | 74 |
74 void resetAnimation() override; | 75 void resetAnimation() override; |
75 bool maybeAnimated() override; | 76 bool maybeAnimated() override; |
76 | 77 |
77 void setAnimationPolicy(ImageAnimationPolicy policy) override { m_animationP
olicy = policy; } | 78 void setAnimationPolicy(ImageAnimationPolicy policy) override { m_animationP
olicy = policy; } |
78 ImageAnimationPolicy animationPolicy() override { return m_animationPolicy;
} | 79 ImageAnimationPolicy animationPolicy() override { return m_animationPolicy;
} |
79 void advanceTime(double deltaTimeInSeconds) override; | 80 void advanceTime(double deltaTimeInSeconds) override; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable
has the final overall image size yet. | 184 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable
has the final overall image size yet. |
184 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 185 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
185 mutable bool m_haveFrameCount : 1; | 186 mutable bool m_haveFrameCount : 1; |
186 }; | 187 }; |
187 | 188 |
188 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 189 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
189 | 190 |
190 } // namespace blink | 191 } // namespace blink |
191 | 192 |
192 #endif | 193 #endif |
OLD | NEW |