OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 return adoptRefWillBeNoop(new MediaStreamEvent(type, canBubble, cancelable,
stream)); | 42 return adoptRefWillBeNoop(new MediaStreamEvent(type, canBubble, cancelable,
stream)); |
43 } | 43 } |
44 | 44 |
45 PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicSt
ring& type, const MediaStreamEventInit& initializer) | 45 PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicSt
ring& type, const MediaStreamEventInit& initializer) |
46 { | 46 { |
47 return adoptRefWillBeNoop(new MediaStreamEvent(type, initializer)); | 47 return adoptRefWillBeNoop(new MediaStreamEvent(type, initializer)); |
48 } | 48 } |
49 | 49 |
50 MediaStreamEvent::MediaStreamEvent() | 50 MediaStreamEvent::MediaStreamEvent() |
51 { | 51 { |
52 ScriptWrappable::init(this); | |
53 } | 52 } |
54 | 53 |
55 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, bool canBubble, boo
l cancelable, MediaStream* stream) | 54 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, bool canBubble, boo
l cancelable, MediaStream* stream) |
56 : Event(type, canBubble, cancelable) | 55 : Event(type, canBubble, cancelable) |
57 , m_stream(stream) | 56 , m_stream(stream) |
58 { | 57 { |
59 ScriptWrappable::init(this); | |
60 } | 58 } |
61 | 59 |
62 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, const MediaStreamEv
entInit& initializer) | 60 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, const MediaStreamEv
entInit& initializer) |
63 : Event(type, initializer) | 61 : Event(type, initializer) |
64 , m_stream(initializer.stream) | 62 , m_stream(initializer.stream) |
65 { | 63 { |
66 ScriptWrappable::init(this); | |
67 } | 64 } |
68 | 65 |
69 MediaStreamEvent::~MediaStreamEvent() | 66 MediaStreamEvent::~MediaStreamEvent() |
70 { | 67 { |
71 } | 68 } |
72 | 69 |
73 MediaStream* MediaStreamEvent::stream() const | 70 MediaStream* MediaStreamEvent::stream() const |
74 { | 71 { |
75 return m_stream.get(); | 72 return m_stream.get(); |
76 } | 73 } |
(...skipping 10 matching lines...) Expand all Loading... |
87 } | 84 } |
88 | 85 |
89 void MediaStreamEvent::trace(Visitor* visitor) | 86 void MediaStreamEvent::trace(Visitor* visitor) |
90 { | 87 { |
91 visitor->trace(m_stream); | 88 visitor->trace(m_stream); |
92 Event::trace(visitor); | 89 Event::trace(visitor); |
93 } | 90 } |
94 | 91 |
95 } // namespace blink | 92 } // namespace blink |
96 | 93 |
OLD | NEW |