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

Side by Side Diff: Source/modules/mediastream/MediaStreamTrackEvent.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 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 24 matching lines...) Expand all
35 } 35 }
36 36
37 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(cons t AtomicString& type, bool canBubble, bool cancelable, MediaStreamTrack* track) 37 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(cons t AtomicString& type, bool canBubble, bool cancelable, MediaStreamTrack* track)
38 { 38 {
39 return adoptRefWillBeNoop(new MediaStreamTrackEvent(type, canBubble, cancela ble, track)); 39 return adoptRefWillBeNoop(new MediaStreamTrackEvent(type, canBubble, cancela ble, track));
40 } 40 }
41 41
42 42
43 MediaStreamTrackEvent::MediaStreamTrackEvent() 43 MediaStreamTrackEvent::MediaStreamTrackEvent()
44 { 44 {
45 ScriptWrappable::init(this);
46 } 45 }
47 46
48 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB ubble, bool cancelable, MediaStreamTrack* track) 47 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB ubble, bool cancelable, MediaStreamTrack* track)
49 : Event(type, canBubble, cancelable) 48 : Event(type, canBubble, cancelable)
50 , m_track(track) 49 , m_track(track)
51 { 50 {
52 ScriptWrappable::init(this);
53 } 51 }
54 52
55 MediaStreamTrackEvent::~MediaStreamTrackEvent() 53 MediaStreamTrackEvent::~MediaStreamTrackEvent()
56 { 54 {
57 } 55 }
58 56
59 MediaStreamTrack* MediaStreamTrackEvent::track() const 57 MediaStreamTrack* MediaStreamTrackEvent::track() const
60 { 58 {
61 return m_track.get(); 59 return m_track.get();
62 } 60 }
63 61
64 const AtomicString& MediaStreamTrackEvent::interfaceName() const 62 const AtomicString& MediaStreamTrackEvent::interfaceName() const
65 { 63 {
66 return EventNames::MediaStreamTrackEvent; 64 return EventNames::MediaStreamTrackEvent;
67 } 65 }
68 66
69 void MediaStreamTrackEvent::trace(Visitor* visitor) 67 void MediaStreamTrackEvent::trace(Visitor* visitor)
70 { 68 {
71 visitor->trace(m_track); 69 visitor->trace(m_track);
72 Event::trace(visitor); 70 Event::trace(visitor);
73 } 71 }
74 72
75 } // namespace blink 73 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/mediastream/MediaStreamTrack.cpp ('k') | Source/modules/mediastream/NavigatorUserMediaError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698