| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. |
| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 ICOImageDecoder(AlphaOption, const ColorBehavior&, size_t max_decoded_bytes); | 47 ICOImageDecoder(AlphaOption, const ColorBehavior&, size_t max_decoded_bytes); |
| 48 ~ICOImageDecoder() override; | 48 ~ICOImageDecoder() override; |
| 49 | 49 |
| 50 // ImageDecoder: | 50 // ImageDecoder: |
| 51 String FilenameExtension() const override { return "ico"; } | 51 String FilenameExtension() const override { return "ico"; } |
| 52 void OnSetData(SegmentReader*) override; | 52 void OnSetData(SegmentReader*) override; |
| 53 IntSize Size() const override; | 53 IntSize Size() const override; |
| 54 IntSize FrameSizeAtIndex(size_t) const override; | 54 IntSize FrameSizeAtIndex(size_t) const override; |
| 55 bool SetSize(unsigned width, unsigned height) override; | 55 bool SetSize(unsigned width, unsigned height) override; |
| 56 bool FrameIsCompleteAtIndex(size_t) const override; | 56 bool FrameIsReceivedAtIndex(size_t) const override; |
| 57 // CAUTION: SetFailed() deletes all readers and decoders. Be careful to | 57 // CAUTION: SetFailed() deletes all readers and decoders. Be careful to |
| 58 // avoid accessing deleted memory, especially when calling this from | 58 // avoid accessing deleted memory, especially when calling this from |
| 59 // inside BMPImageReader! | 59 // inside BMPImageReader! |
| 60 bool SetFailed() override; | 60 bool SetFailed() override; |
| 61 bool HotSpot(IntPoint&) const override; | 61 bool HotSpot(IntPoint&) const override; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 enum ImageType { | 64 enum ImageType { |
| 65 kUnknown, | 65 kUnknown, |
| 66 BMP, | 66 BMP, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // for the particular entry being decoded. | 177 // for the particular entry being decoded. |
| 178 IntSize frame_size_; | 178 IntSize frame_size_; |
| 179 | 179 |
| 180 // Used to pass on to an internally created PNG decoder. | 180 // Used to pass on to an internally created PNG decoder. |
| 181 const ColorBehavior color_behavior_; | 181 const ColorBehavior color_behavior_; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| 185 | 185 |
| 186 #endif | 186 #endif |
| OLD | NEW |