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

Side by Side Diff: Source/core/events/ProgressEvent.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/PopStateEvent.cpp ('k') | Source/core/events/RelatedEvent.cpp » ('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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 , loaded(0) 33 , loaded(0)
34 , total(0) 34 , total(0)
35 { 35 {
36 } 36 }
37 37
38 ProgressEvent::ProgressEvent() 38 ProgressEvent::ProgressEvent()
39 : m_lengthComputable(false) 39 : m_lengthComputable(false)
40 , m_loaded(0) 40 , m_loaded(0)
41 , m_total(0) 41 , m_total(0)
42 { 42 {
43 ScriptWrappable::init(this);
44 } 43 }
45 44
46 ProgressEvent::ProgressEvent(const AtomicString& type, const ProgressEventInit& initializer) 45 ProgressEvent::ProgressEvent(const AtomicString& type, const ProgressEventInit& initializer)
47 : Event(type, initializer) 46 : Event(type, initializer)
48 , m_lengthComputable(initializer.lengthComputable) 47 , m_lengthComputable(initializer.lengthComputable)
49 , m_loaded(initializer.loaded) 48 , m_loaded(initializer.loaded)
50 , m_total(initializer.total) 49 , m_total(initializer.total)
51 { 50 {
52 ScriptWrappable::init(this);
53 } 51 }
54 52
55 ProgressEvent::ProgressEvent(const AtomicString& type, bool lengthComputable, un signed long long loaded, unsigned long long total) 53 ProgressEvent::ProgressEvent(const AtomicString& type, bool lengthComputable, un signed long long loaded, unsigned long long total)
56 : Event(type, false, true) 54 : Event(type, false, true)
57 , m_lengthComputable(lengthComputable) 55 , m_lengthComputable(lengthComputable)
58 , m_loaded(loaded) 56 , m_loaded(loaded)
59 , m_total(total) 57 , m_total(total)
60 { 58 {
61 ScriptWrappable::init(this);
62 } 59 }
63 60
64 const AtomicString& ProgressEvent::interfaceName() const 61 const AtomicString& ProgressEvent::interfaceName() const
65 { 62 {
66 return EventNames::ProgressEvent; 63 return EventNames::ProgressEvent;
67 } 64 }
68 65
69 void ProgressEvent::trace(Visitor* visitor) 66 void ProgressEvent::trace(Visitor* visitor)
70 { 67 {
71 Event::trace(visitor); 68 Event::trace(visitor);
72 } 69 }
73 70
74 } 71 }
OLDNEW
« no previous file with comments | « Source/core/events/PopStateEvent.cpp ('k') | Source/core/events/RelatedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698