Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: third_party/WebKit/Source/core/html/ImageDocument.h

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
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);
42 } 42 }
43 43
44 ImageResource* cachedImage(); 44 ImageResourceContent* cachedImage();
45
46 // TODO(hiroshige): Remove this.
47 ImageResource* cachedImageResourceDeprecated();
48
45 HTMLImageElement* imageElement() const { return m_imageElement.get(); } 49 HTMLImageElement* imageElement() const { return m_imageElement.get(); }
46 50
47 void windowSizeChanged(); 51 void windowSizeChanged();
48 void imageUpdated(); 52 void imageUpdated();
49 void imageClicked(int x, int y); 53 void imageClicked(int x, int y);
50 void imageLoaded(); 54 void imageLoaded();
51 void updateImageStyle(); 55 void updateImageStyle();
52 56
53 DECLARE_VIRTUAL_TRACE(); 57 DECLARE_VIRTUAL_TRACE();
54 58
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 99
96 enum ShrinkToFitMode { Viewport, Desktop }; 100 enum ShrinkToFitMode { Viewport, Desktop };
97 ShrinkToFitMode m_shrinkToFitMode; 101 ShrinkToFitMode m_shrinkToFitMode;
98 }; 102 };
99 103
100 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); 104 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument);
101 105
102 } // namespace blink 106 } // namespace blink
103 107
104 #endif // ImageDocument_h 108 #endif // ImageDocument_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLObjectElement.cpp ('k') | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698