diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/xml/XMLHttpRequestProgressEvent.h | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/xml/XMLHttpRequestProgressEvent.h')
-rw-r--r-- | Source/WebCore/xml/XMLHttpRequestProgressEvent.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/WebCore/xml/XMLHttpRequestProgressEvent.h b/Source/WebCore/xml/XMLHttpRequestProgressEvent.h index f0cb0f4af..d3fa0b41e 100644 --- a/Source/WebCore/xml/XMLHttpRequestProgressEvent.h +++ b/Source/WebCore/xml/XMLHttpRequestProgressEvent.h @@ -11,10 +11,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -27,16 +27,22 @@ #ifndef XMLHttpRequestProgressEvent_h #define XMLHttpRequestProgressEvent_h +#include "EventNames.h" #include "ProgressEvent.h" namespace WebCore { class XMLHttpRequestProgressEvent : public ProgressEvent { public: - static Ref<XMLHttpRequestProgressEvent> create(const AtomicString& type, bool lengthComputable = false, unsigned long long loaded = 0, unsigned long long total = 0) + static PassRefPtr<XMLHttpRequestProgressEvent> create() { - return adoptRef(*new XMLHttpRequestProgressEvent(type, lengthComputable, loaded, total)); + return adoptRef(new XMLHttpRequestProgressEvent); } + static PassRefPtr<XMLHttpRequestProgressEvent> create(const AtomicString& type, bool lengthComputable = false, unsigned long long loaded = 0, unsigned long long total = 0) + { + return adoptRef(new XMLHttpRequestProgressEvent(type, lengthComputable, loaded, total)); + } + // Those 2 synonyms are included for compatibility with Firefox. unsigned long long position() const { return loaded(); } unsigned long long totalSize() const { return total(); } @@ -44,6 +50,7 @@ public: virtual EventInterface eventInterface() const { return XMLHttpRequestProgressEventInterfaceType; } private: + XMLHttpRequestProgressEvent() { } XMLHttpRequestProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total) : ProgressEvent(type, lengthComputable, loaded, total) { |