| 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 18 matching lines...) Expand all Loading... |
| 29 #include "wtf/Uint8Array.h" | 29 #include "wtf/Uint8Array.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 MediaKeyNeededEventInit::MediaKeyNeededEventInit() | 33 MediaKeyNeededEventInit::MediaKeyNeededEventInit() |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 MediaKeyNeededEvent::MediaKeyNeededEvent() | 37 MediaKeyNeededEvent::MediaKeyNeededEvent() |
| 38 { | 38 { |
| 39 ScriptWrappable::init(this); | |
| 40 } | 39 } |
| 41 | 40 |
| 42 MediaKeyNeededEvent::MediaKeyNeededEvent(const AtomicString& type, const MediaKe
yNeededEventInit& initializer) | 41 MediaKeyNeededEvent::MediaKeyNeededEvent(const AtomicString& type, const MediaKe
yNeededEventInit& initializer) |
| 43 : Event(type, initializer) | 42 : Event(type, initializer) |
| 44 , m_contentType(initializer.contentType) | 43 , m_contentType(initializer.contentType) |
| 45 , m_initData(initializer.initData) | 44 , m_initData(initializer.initData) |
| 46 { | 45 { |
| 47 ScriptWrappable::init(this); | |
| 48 } | 46 } |
| 49 | 47 |
| 50 MediaKeyNeededEvent::~MediaKeyNeededEvent() | 48 MediaKeyNeededEvent::~MediaKeyNeededEvent() |
| 51 { | 49 { |
| 52 } | 50 } |
| 53 | 51 |
| 54 const AtomicString& MediaKeyNeededEvent::interfaceName() const | 52 const AtomicString& MediaKeyNeededEvent::interfaceName() const |
| 55 { | 53 { |
| 56 return EventNames::MediaKeyNeededEvent; | 54 return EventNames::MediaKeyNeededEvent; |
| 57 } | 55 } |
| 58 | 56 |
| 59 void MediaKeyNeededEvent::trace(Visitor* visitor) | 57 void MediaKeyNeededEvent::trace(Visitor* visitor) |
| 60 { | 58 { |
| 61 Event::trace(visitor); | 59 Event::trace(visitor); |
| 62 } | 60 } |
| 63 | 61 |
| 64 } // namespace blink | 62 } // namespace blink |
| OLD | NEW |