| 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 12 matching lines...) Expand all Loading... |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "config.h" |
| 26 #include "modules/mediastream/MediaStreamTrackEvent.h" | 26 #include "modules/mediastream/MediaStreamTrackEvent.h" |
| 27 | 27 |
| 28 #include "core/events/ThreadLocalEventNames.h" | 28 #include "core/events/ThreadLocalEventNames.h" |
| 29 #include "modules/mediastream/MediaStreamTrack.h" | 29 #include "modules/mediastream/MediaStreamTrack.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create() | 33 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create() |
| 34 { | 34 { |
| 35 return adoptRefWillBeRefCountedGarbageCollected(new MediaStreamTrackEvent); | 35 return adoptRef(new MediaStreamTrackEvent); |
| 36 } | 36 } |
| 37 | 37 |
| 38 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(cons
t AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTra
ck> track) | 38 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicStri
ng& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) |
| 39 { | 39 { |
| 40 return adoptRefWillBeRefCountedGarbageCollected(new MediaStreamTrackEvent(ty
pe, canBubble, cancelable, track)); | 40 return adoptRef(new MediaStreamTrackEvent(type, canBubble, cancelable, track
)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 | 43 |
| 44 MediaStreamTrackEvent::MediaStreamTrackEvent() | 44 MediaStreamTrackEvent::MediaStreamTrackEvent() |
| 45 { | 45 { |
| 46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
| 47 } | 47 } |
| 48 | 48 |
| 49 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) | 49 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) |
| 50 : Event(type, canBubble, cancelable) | 50 : Event(type, canBubble, cancelable) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 66 { | 66 { |
| 67 return EventNames::MediaStreamTrackEvent; | 67 return EventNames::MediaStreamTrackEvent; |
| 68 } | 68 } |
| 69 | 69 |
| 70 void MediaStreamTrackEvent::trace(Visitor* visitor) | 70 void MediaStreamTrackEvent::trace(Visitor* visitor) |
| 71 { | 71 { |
| 72 Event::trace(visitor); | 72 Event::trace(visitor); |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace WebCore | 75 } // namespace WebCore |
| OLD | NEW |