| 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 10 matching lines...) Expand all Loading... |
| 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef ImageDocument_h | 25 #ifndef ImageDocument_h |
| 26 #define ImageDocument_h | 26 #define ImageDocument_h |
| 27 | 27 |
| 28 #include "core/html/HTMLDivElement.h" | 28 #include "core/html/HTMLDivElement.h" |
| 29 #include "core/html/HTMLDocument.h" | 29 #include "core/html/HTMLDocument.h" |
| 30 #include "core/html/HTMLImageElement.h" | 30 #include "core/html/HTMLImageElement.h" |
| 31 #include "wtf/RefPtr.h" | 31 #include "platform/wtf/RefPtr.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class ImageResource; | 35 class ImageResource; |
| 36 | 36 |
| 37 class CORE_EXPORT ImageDocument final : public HTMLDocument { | 37 class CORE_EXPORT ImageDocument final : public HTMLDocument { |
| 38 public: | 38 public: |
| 39 static ImageDocument* Create( | 39 static ImageDocument* Create( |
| 40 const DocumentInit& initializer = DocumentInit()) { | 40 const DocumentInit& initializer = DocumentInit()) { |
| 41 return new ImageDocument(initializer); | 41 return new ImageDocument(initializer); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 enum ShrinkToFitMode { kViewport, kDesktop }; | 100 enum ShrinkToFitMode { kViewport, kDesktop }; |
| 101 ShrinkToFitMode shrink_to_fit_mode_; | 101 ShrinkToFitMode shrink_to_fit_mode_; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); | 104 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| 107 | 107 |
| 108 #endif // ImageDocument_h | 108 #endif // ImageDocument_h |
| OLD | NEW |