OLD | NEW |
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 Loading... |
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 |
OLD | NEW |