Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: Source/core/events/ResourceProgressEvent.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/events/RelatedEvent.cpp ('k') | Source/core/events/SecurityPolicyViolationEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « Source/core/events/RelatedEvent.cpp ('k') | Source/core/events/SecurityPolicyViolationEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698