| 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 | 29 |
| 30 #include "MediaKeyMessageEvent.h" | 30 #include "MediaKeyMessageEvent.h" |
| 31 | 31 |
| 32 #include "EventNames.h" | 32 #include "EventNames.h" |
| 33 #include <wtf/Uint8Array.h> | 33 #include <wtf/Uint8Array.h> |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 MediaKeyMessageEventInit::MediaKeyMessageEventInit() | 37 MediaKeyMessageEventInit::MediaKeyMessageEventInit() |
| 38 { | 38 { |
| 39 ScriptWrappable::init(this); |
| 39 } | 40 } |
| 40 | 41 |
| 41 MediaKeyMessageEvent::MediaKeyMessageEvent() | 42 MediaKeyMessageEvent::MediaKeyMessageEvent() |
| 42 { | 43 { |
| 44 ScriptWrappable::init(this); |
| 43 } | 45 } |
| 44 | 46 |
| 45 MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, const Media
KeyMessageEventInit& initializer) | 47 MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, const Media
KeyMessageEventInit& initializer) |
| 46 : Event(type, initializer) | 48 : Event(type, initializer) |
| 47 , m_message(initializer.message) | 49 , m_message(initializer.message) |
| 48 , m_destinationURL(initializer.destinationURL) | 50 , m_destinationURL(initializer.destinationURL) |
| 49 { | 51 { |
| 52 ScritpWrappable::init(this); |
| 50 } | 53 } |
| 51 | 54 |
| 52 MediaKeyMessageEvent::~MediaKeyMessageEvent() | 55 MediaKeyMessageEvent::~MediaKeyMessageEvent() |
| 53 { | 56 { |
| 54 } | 57 } |
| 55 | 58 |
| 56 const AtomicString& MediaKeyMessageEvent::interfaceName() const | 59 const AtomicString& MediaKeyMessageEvent::interfaceName() const |
| 57 { | 60 { |
| 58 return eventNames().interfaceForMediaKeyMessageEvent; | 61 return eventNames().interfaceForMediaKeyMessageEvent; |
| 59 } | 62 } |
| 60 | 63 |
| 61 } // namespace WebCore | 64 } // namespace WebCore |
| 62 | 65 |
| 63 #endif | 66 #endif |
| OLD | NEW |