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

Side by Side Diff: Source/core/fetch/ImageResource.h

Issue 754813002: Expose setting API to set ImageAnimationPolicy(Allowed, Once, None) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update Code Created 6 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
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 virtual bool isImage() const override { return true; } 104 virtual bool isImage() const override { return true; }
105 virtual bool stillNeedsLoad() const override { return !errorOccurred() && st atus() == Unknown && !isLoading(); } 105 virtual bool stillNeedsLoad() const override { return !errorOccurred() && st atus() == Unknown && !isLoading(); }
106 106
107 // ImageObserver 107 // ImageObserver
108 virtual void decodedSizeChanged(const blink::Image*, int delta) override; 108 virtual void decodedSizeChanged(const blink::Image*, int delta) override;
109 virtual void didDraw(const blink::Image*) override; 109 virtual void didDraw(const blink::Image*) override;
110 110
111 virtual bool shouldPauseAnimation(const blink::Image*) override; 111 virtual bool shouldPauseAnimation(const blink::Image*) override;
112 virtual void animationAdvanced(const blink::Image*) override; 112 virtual void animationAdvanced(const blink::Image*) override;
113 virtual void imageAnimationPolicy(const blink::Image*, ImageAnimationPolicy& ) override;
113 virtual void changedInRect(const blink::Image*, const IntRect&) override; 114 virtual void changedInRect(const blink::Image*, const IntRect&) override;
114 115
115 protected: 116 protected:
116 virtual bool isSafeToUnlock() const override; 117 virtual bool isSafeToUnlock() const override;
117 virtual void destroyDecodedDataIfPossible() override; 118 virtual void destroyDecodedDataIfPossible() override;
118 119
119 private: 120 private:
120 void clear(); 121 void clear();
121 122
122 void setCustomAcceptHeader(); 123 void setCustomAcceptHeader();
(...skipping 14 matching lines...) Expand all
137 OwnPtr<SVGImageCache> m_svgImageCache; 138 OwnPtr<SVGImageCache> m_svgImageCache;
138 bool m_loadingMultipartContent; 139 bool m_loadingMultipartContent;
139 bool m_hasDevicePixelRatioHeaderValue; 140 bool m_hasDevicePixelRatioHeaderValue;
140 }; 141 };
141 142
142 DEFINE_RESOURCE_TYPE_CASTS(Image); 143 DEFINE_RESOURCE_TYPE_CASTS(Image);
143 144
144 } 145 }
145 146
146 #endif 147 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698