| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "core/events/ResourceProgressEvent.h" | 27 #include "core/events/ResourceProgressEvent.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 ResourceProgressEvent::ResourceProgressEvent() | |
| 32 { | |
| 33 } | |
| 34 | |
| 35 ResourceProgressEvent::ResourceProgressEvent(const AtomicString& type, bool leng
thComputable, unsigned long long loaded, unsigned long long total, const String&
url) | 31 ResourceProgressEvent::ResourceProgressEvent(const AtomicString& type, bool leng
thComputable, unsigned long long loaded, unsigned long long total, const String&
url) |
| 36 : ProgressEvent(type, lengthComputable, loaded, total) | 32 : ProgressEvent(type, lengthComputable, loaded, total) |
| 37 , m_url(url) | 33 , m_url(url) |
| 38 { | 34 { |
| 39 } | 35 } |
| 40 | 36 |
| 41 const String& ResourceProgressEvent::url() const | 37 const String& ResourceProgressEvent::url() const |
| 42 { | 38 { |
| 43 return m_url; | 39 return m_url; |
| 44 } | 40 } |
| 45 | 41 |
| 46 const AtomicString& ResourceProgressEvent::interfaceName() const | 42 const AtomicString& ResourceProgressEvent::interfaceName() const |
| 47 { | 43 { |
| 48 return EventNames::ResourceProgressEvent; | 44 return EventNames::ResourceProgressEvent; |
| 49 } | 45 } |
| 50 | 46 |
| 51 DEFINE_TRACE(ResourceProgressEvent) | 47 DEFINE_TRACE(ResourceProgressEvent) |
| 52 { | 48 { |
| 53 ProgressEvent::trace(visitor); | 49 ProgressEvent::trace(visitor); |
| 54 } | 50 } |
| 55 | 51 |
| 56 } // namespace blink | 52 } // namespace blink |
| OLD | NEW |