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 16 matching lines...) Expand all Loading... |
27 #include "modules/encryptedmedia/MediaKeyMessageEvent.h" | 27 #include "modules/encryptedmedia/MediaKeyMessageEvent.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 MediaKeyMessageEventInit::MediaKeyMessageEventInit() | 31 MediaKeyMessageEventInit::MediaKeyMessageEventInit() |
32 { | 32 { |
33 } | 33 } |
34 | 34 |
35 MediaKeyMessageEvent::MediaKeyMessageEvent() | 35 MediaKeyMessageEvent::MediaKeyMessageEvent() |
36 { | 36 { |
37 ScriptWrappable::init(this); | |
38 } | 37 } |
39 | 38 |
40 MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, const Media
KeyMessageEventInit& initializer) | 39 MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, const Media
KeyMessageEventInit& initializer) |
41 : Event(type, initializer) | 40 : Event(type, initializer) |
42 , m_message(initializer.message) | 41 , m_message(initializer.message) |
43 , m_destinationURL(initializer.destinationURL) | 42 , m_destinationURL(initializer.destinationURL) |
44 { | 43 { |
45 ScriptWrappable::init(this); | |
46 } | 44 } |
47 | 45 |
48 MediaKeyMessageEvent::~MediaKeyMessageEvent() | 46 MediaKeyMessageEvent::~MediaKeyMessageEvent() |
49 { | 47 { |
50 } | 48 } |
51 | 49 |
52 const AtomicString& MediaKeyMessageEvent::interfaceName() const | 50 const AtomicString& MediaKeyMessageEvent::interfaceName() const |
53 { | 51 { |
54 return EventNames::MediaKeyMessageEvent; | 52 return EventNames::MediaKeyMessageEvent; |
55 } | 53 } |
56 | 54 |
57 void MediaKeyMessageEvent::trace(Visitor* visitor) | 55 void MediaKeyMessageEvent::trace(Visitor* visitor) |
58 { | 56 { |
59 Event::trace(visitor); | 57 Event::trace(visitor); |
60 } | 58 } |
61 | 59 |
62 } // namespace blink | 60 } // namespace blink |
OLD | NEW |