| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple 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 | 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 29 matching lines...) Expand all Loading... |
| 40 const DocumentInit& initializer = DocumentInit()) { | 40 const DocumentInit& initializer = DocumentInit()) { |
| 41 return new ImageDocument(initializer); | 41 return new ImageDocument(initializer); |
| 42 } | 42 } |
| 43 | 43 |
| 44 ImageResource* cachedImage(); | 44 ImageResource* cachedImage(); |
| 45 HTMLImageElement* imageElement() const { return m_imageElement.get(); } | 45 HTMLImageElement* imageElement() const { return m_imageElement.get(); } |
| 46 | 46 |
| 47 void windowSizeChanged(); | 47 void windowSizeChanged(); |
| 48 void imageUpdated(); | 48 void imageUpdated(); |
| 49 void imageClicked(int x, int y); | 49 void imageClicked(int x, int y); |
| 50 void finishedParsing() override; |
| 50 | 51 |
| 51 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 explicit ImageDocument(const DocumentInit&); | 55 explicit ImageDocument(const DocumentInit&); |
| 55 | 56 |
| 56 DocumentParser* createParser() override; | 57 DocumentParser* createParser() override; |
| 57 | 58 |
| 58 void createDocumentStructure(); | 59 void createDocumentStructure(); |
| 59 | 60 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 80 | 81 |
| 81 enum ShrinkToFitMode { Viewport, Desktop }; | 82 enum ShrinkToFitMode { Viewport, Desktop }; |
| 82 ShrinkToFitMode m_shrinkToFitMode; | 83 ShrinkToFitMode m_shrinkToFitMode; |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); | 86 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); |
| 86 | 87 |
| 87 } // namespace blink | 88 } // namespace blink |
| 88 | 89 |
| 89 #endif // ImageDocument_h | 90 #endif // ImageDocument_h |
| OLD | NEW |