| 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 13 matching lines...) Expand all Loading... |
| 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 "config.h" | 27 #include "config.h" |
| 28 #include "core/events/ResourceProgressEvent.h" | 28 #include "core/events/ResourceProgressEvent.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 ResourceProgressEvent::ResourceProgressEvent() | 32 ResourceProgressEvent::ResourceProgressEvent() |
| 33 { | 33 { |
| 34 ScriptWrappable::init(this); | |
| 35 } | 34 } |
| 36 | 35 |
| 37 ResourceProgressEvent::ResourceProgressEvent(const AtomicString& type, bool leng
thComputable, unsigned long long loaded, unsigned long long total, const String&
url) | 36 ResourceProgressEvent::ResourceProgressEvent(const AtomicString& type, bool leng
thComputable, unsigned long long loaded, unsigned long long total, const String&
url) |
| 38 : ProgressEvent(type, lengthComputable, loaded, total) | 37 : ProgressEvent(type, lengthComputable, loaded, total) |
| 39 , m_url(url) | 38 , m_url(url) |
| 40 { | 39 { |
| 41 ScriptWrappable::init(this); | |
| 42 } | 40 } |
| 43 | 41 |
| 44 const String& ResourceProgressEvent::url() const | 42 const String& ResourceProgressEvent::url() const |
| 45 { | 43 { |
| 46 return m_url; | 44 return m_url; |
| 47 } | 45 } |
| 48 | 46 |
| 49 const AtomicString& ResourceProgressEvent::interfaceName() const | 47 const AtomicString& ResourceProgressEvent::interfaceName() const |
| 50 { | 48 { |
| 51 return EventNames::ResourceProgressEvent; | 49 return EventNames::ResourceProgressEvent; |
| 52 } | 50 } |
| 53 | 51 |
| 54 void ResourceProgressEvent::trace(Visitor* visitor) | 52 void ResourceProgressEvent::trace(Visitor* visitor) |
| 55 { | 53 { |
| 56 ProgressEvent::trace(visitor); | 54 ProgressEvent::trace(visitor); |
| 57 } | 55 } |
| 58 | 56 |
| 59 } | 57 } |
| OLD | NEW |