Index: Source/core/dom/ResourceProgressEvent.h |
diff --git a/Source/core/animation/TimedItem.h b/Source/core/dom/ResourceProgressEvent.h |
similarity index 64% |
copy from Source/core/animation/TimedItem.h |
copy to Source/core/dom/ResourceProgressEvent.h |
index 3d532fb47d472455239caa31fdbe4e4fd718bee6..7e1f82a1f29deb2b2e11323622dfac2b55f05824 100644 |
--- a/Source/core/animation/TimedItem.h |
+++ b/Source/core/dom/ResourceProgressEvent.h |
@@ -28,36 +28,36 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef TimedItem_h |
-#define TimedItem_h |
+#ifndef ResourceProgressEvent_h |
+#define ResourceProgressEvent_h |
-#include <wtf/PassRefPtr.h> |
-#include <wtf/RefCounted.h> |
+#include "core/dom/ProgressEvent.h" |
namespace WebCore { |
-class Element; |
- |
-class TimedItem : public RefCounted<TimedItem> { |
+class ResourceProgressEvent : public ProgressEvent { |
abarth-chromium
2013/05/17 19:06:12
Please add a class-level comment explaining why th
dmichael (off chromium)
2013/05/20 21:11:25
Done.
|
public: |
- enum ChildAnimationState { |
- BeforeAnimation, |
- AnimationInProgress, |
- AnimationCompleted |
- }; |
+ static PassRefPtr<ResourceProgressEvent> create() |
+ { |
+ return adoptRef(new ResourceProgressEvent); |
+ } |
+ static PassRefPtr<ResourceProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total, const AtomicString& url) |
+ { |
+ return adoptRef(new ResourceProgressEvent(type, lengthComputable, loaded, total, url)); |
+ } |
- virtual ~TimedItem() { } |
+ const AtomicString& url() const; |
- virtual ChildAnimationState serviceAnimations(double time) = 0; |
+ virtual const AtomicString& interfaceName() const; |
protected: |
- TimedItem(); |
- void updateTimeFraction(double time); |
+ ResourceProgressEvent(); |
+ ResourceProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total, const AtomicString& url); |
- double m_timeFraction; |
- int m_currentIteration; |
+private: |
+ AtomicString m_url; |
abarth-chromium
2013/05/17 19:06:12
For the URL member, we should use String not Atomi
dmichael (off chromium)
2013/05/20 21:11:25
Done.
|
}; |
} // namespace WebCore |
-#endif |
+#endif // ResourceProgressEvent_h |