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

Side by Side Diff: Source/modules/mediastream/RTCDataChannelEvent.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 22 matching lines...) Expand all
33 } 33 }
34 34
35 PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const At omicString& type, bool canBubble, bool cancelable, RTCDataChannel* channel) 35 PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const At omicString& type, bool canBubble, bool cancelable, RTCDataChannel* channel)
36 { 36 {
37 return adoptRefWillBeNoop(new RTCDataChannelEvent(type, canBubble, cancelabl e, channel)); 37 return adoptRefWillBeNoop(new RTCDataChannelEvent(type, canBubble, cancelabl e, channel));
38 } 38 }
39 39
40 40
41 RTCDataChannelEvent::RTCDataChannelEvent() 41 RTCDataChannelEvent::RTCDataChannelEvent()
42 { 42 {
43 ScriptWrappable::init(this);
44 } 43 }
45 44
46 RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type, bool canBubbl e, bool cancelable, RTCDataChannel* channel) 45 RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type, bool canBubbl e, bool cancelable, RTCDataChannel* channel)
47 : Event(type, canBubble, cancelable) 46 : Event(type, canBubble, cancelable)
48 , m_channel(channel) 47 , m_channel(channel)
49 { 48 {
50 ScriptWrappable::init(this);
51 } 49 }
52 50
53 RTCDataChannelEvent::~RTCDataChannelEvent() 51 RTCDataChannelEvent::~RTCDataChannelEvent()
54 { 52 {
55 } 53 }
56 54
57 RTCDataChannel* RTCDataChannelEvent::channel() const 55 RTCDataChannel* RTCDataChannelEvent::channel() const
58 { 56 {
59 return m_channel.get(); 57 return m_channel.get();
60 } 58 }
61 59
62 const AtomicString& RTCDataChannelEvent::interfaceName() const 60 const AtomicString& RTCDataChannelEvent::interfaceName() const
63 { 61 {
64 return EventNames::RTCDataChannelEvent; 62 return EventNames::RTCDataChannelEvent;
65 } 63 }
66 64
67 void RTCDataChannelEvent::trace(Visitor* visitor) 65 void RTCDataChannelEvent::trace(Visitor* visitor)
68 { 66 {
69 visitor->trace(m_channel); 67 visitor->trace(m_channel);
70 Event::trace(visitor); 68 Event::trace(visitor);
71 } 69 }
72 70
73 } // namespace blink 71 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDataChannel.cpp ('k') | Source/modules/mediastream/RTCIceCandidate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698