| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "core/events/ThreadLocalEventNames.h" | 28 #include "core/events/ThreadLocalEventNames.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 MediaStreamEventInit::MediaStreamEventInit() | 32 MediaStreamEventInit::MediaStreamEventInit() |
| 33 : stream(nullptr) | 33 : stream(nullptr) |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create() | 37 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create() |
| 38 { | 38 { |
| 39 return adoptRefWillBeRefCountedGarbageCollected(new MediaStreamEvent); | 39 return adoptRef(new MediaStreamEvent); |
| 40 } | 40 } |
| 41 | 41 |
| 42 PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicSt
ring& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream> stream) | 42 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type,
bool canBubble, bool cancelable, PassRefPtr<MediaStream> stream) |
| 43 { | 43 { |
| 44 return adoptRefWillBeRefCountedGarbageCollected(new MediaStreamEvent(type, c
anBubble, cancelable, stream)); | 44 return adoptRef(new MediaStreamEvent(type, canBubble, cancelable, stream)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicSt
ring& type, const MediaStreamEventInit& initializer) | 47 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type,
const MediaStreamEventInit& initializer) |
| 48 { | 48 { |
| 49 return adoptRefWillBeRefCountedGarbageCollected(new MediaStreamEvent(type, i
nitializer)); | 49 return adoptRef(new MediaStreamEvent(type, initializer)); |
| 50 } | 50 } |
| 51 | 51 |
| 52 MediaStreamEvent::MediaStreamEvent() | 52 MediaStreamEvent::MediaStreamEvent() |
| 53 { | 53 { |
| 54 ScriptWrappable::init(this); | 54 ScriptWrappable::init(this); |
| 55 } | 55 } |
| 56 | 56 |
| 57 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, bool canBubble, boo
l cancelable, PassRefPtr<MediaStream> stream) | 57 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, bool canBubble, boo
l cancelable, PassRefPtr<MediaStream> stream) |
| 58 : Event(type, canBubble, cancelable) | 58 : Event(type, canBubble, cancelable) |
| 59 , m_stream(stream) | 59 , m_stream(stream) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 88 return EventNames::MediaStreamEvent; | 88 return EventNames::MediaStreamEvent; |
| 89 } | 89 } |
| 90 | 90 |
| 91 void MediaStreamEvent::trace(Visitor* visitor) | 91 void MediaStreamEvent::trace(Visitor* visitor) |
| 92 { | 92 { |
| 93 Event::trace(visitor); | 93 Event::trace(visitor); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace WebCore | 96 } // namespace WebCore |
| 97 | 97 |
| OLD | NEW |