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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "modules/mediastream/MediaStreamEvent.h" | 26 #include "modules/mediastream/MediaStreamEvent.h" |
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(0) | 33 : stream(nullptr) |
34 { | 34 { |
35 } | 35 } |
36 | 36 |
37 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create() | 37 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create() |
38 { | 38 { |
39 return adoptRef(new MediaStreamEvent); | 39 return adoptRef(new MediaStreamEvent); |
40 } | 40 } |
41 | 41 |
42 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& 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 { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 return m_stream.get(); | 83 return m_stream.get(); |
84 } | 84 } |
85 | 85 |
86 const AtomicString& MediaStreamEvent::interfaceName() const | 86 const AtomicString& MediaStreamEvent::interfaceName() const |
87 { | 87 { |
88 return EventNames::MediaStreamEvent; | 88 return EventNames::MediaStreamEvent; |
89 } | 89 } |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
92 | 92 |
OLD | NEW |