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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "modules/encryptedmedia/MediaEncryptedEvent.h" | 26 #include "modules/encryptedmedia/MediaEncryptedEvent.h" |
27 | 27 |
28 #include "core/dom/DOMArrayBuffer.h" | 28 #include "core/dom/DOMArrayBuffer.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 MediaEncryptedEvent::MediaEncryptedEvent() | |
33 { | |
34 } | |
35 | |
36 MediaEncryptedEvent::MediaEncryptedEvent(const AtomicString& type, const MediaEn
cryptedEventInit& initializer) | 32 MediaEncryptedEvent::MediaEncryptedEvent(const AtomicString& type, const MediaEn
cryptedEventInit& initializer) |
37 : Event(type, initializer) | 33 : Event(type, initializer) |
38 , m_initDataType(initializer.initDataType()) | 34 , m_initDataType(initializer.initDataType()) |
39 , m_initData(initializer.initData()) | 35 , m_initData(initializer.initData()) |
40 { | 36 { |
41 } | 37 } |
42 | 38 |
43 MediaEncryptedEvent::~MediaEncryptedEvent() | 39 MediaEncryptedEvent::~MediaEncryptedEvent() |
44 { | 40 { |
45 } | 41 } |
46 | 42 |
47 const AtomicString& MediaEncryptedEvent::interfaceName() const | 43 const AtomicString& MediaEncryptedEvent::interfaceName() const |
48 { | 44 { |
49 return EventNames::MediaEncryptedEvent; | 45 return EventNames::MediaEncryptedEvent; |
50 } | 46 } |
51 | 47 |
52 DEFINE_TRACE(MediaEncryptedEvent) | 48 DEFINE_TRACE(MediaEncryptedEvent) |
53 { | 49 { |
54 visitor->trace(m_initData); | 50 visitor->trace(m_initData); |
55 Event::trace(visitor); | 51 Event::trace(visitor); |
56 } | 52 } |
57 | 53 |
58 } // namespace blink | 54 } // namespace blink |
OLD | NEW |