diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/dom/ProgressEvent.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/dom/ProgressEvent.h')
-rw-r--r-- | WebCore/dom/ProgressEvent.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/WebCore/dom/ProgressEvent.h b/WebCore/dom/ProgressEvent.h index e215091..e30cb1b 100644 --- a/WebCore/dom/ProgressEvent.h +++ b/WebCore/dom/ProgressEvent.h @@ -32,8 +32,14 @@ namespace WebCore { class ProgressEvent : public Event { public: - ProgressEvent(); - ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned loaded, unsigned total); + static PassRefPtr<ProgressEvent> create() + { + return adoptRef(new ProgressEvent); + } + static PassRefPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned loaded, unsigned total) + { + return adoptRef(new ProgressEvent(type, lengthComputable, loaded, total)); + } void initProgressEvent(const AtomicString& typeArg, bool canBubbleArg, @@ -48,6 +54,10 @@ namespace WebCore { virtual bool isProgressEvent() const { return true; } + protected: + ProgressEvent(); + ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned loaded, unsigned total); + private: bool m_lengthComputable; unsigned m_loaded; |