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

Side by Side Diff: Source/core/loader/ImageLoader.h

Issue 1120963003: Implements getImageAnimationPolicy() at ImageLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update API name. Created 5 years, 7 months 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; 103 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask;
104 } 104 }
105 105
106 void dispatchPendingEvent(ImageEventSender*); 106 void dispatchPendingEvent(ImageEventSender*);
107 107
108 static void dispatchPendingLoadEvents(); 108 static void dispatchPendingLoadEvents();
109 static void dispatchPendingErrorEvents(); 109 static void dispatchPendingErrorEvents();
110 110
111 void addClient(ImageLoaderClient*); 111 void addClient(ImageLoaderClient*);
112 void removeClient(ImageLoaderClient*); 112 void removeClient(ImageLoaderClient*);
113
114 virtual bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) override final;
113 protected: 115 protected:
114 virtual void notifyFinished(Resource*) override; 116 virtual void notifyFinished(Resource*) override;
115 117
116 private: 118 private:
117 class Task; 119 class Task;
118 120
119 // Called from the task or from updateFromElement to initiate the load. 121 // Called from the task or from updateFromElement to initiate the load.
120 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior) ; 122 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior) ;
121 123
122 virtual void dispatchLoadEvent() = 0; 124 virtual void dispatchLoadEvent() = 0;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool m_imageComplete : 1; 185 bool m_imageComplete : 1;
184 bool m_loadingImageDocument : 1; 186 bool m_loadingImageDocument : 1;
185 bool m_elementIsProtected : 1; 187 bool m_elementIsProtected : 1;
186 bool m_suppressErrorEvents : 1; 188 bool m_suppressErrorEvents : 1;
187 unsigned m_highPriorityClientCount; 189 unsigned m_highPriorityClientCount;
188 }; 190 };
189 191
190 } 192 }
191 193
192 #endif 194 #endif
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/animation-policy-expected.html ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698