| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class DOMArrayBuffer; | 35 class DOMArrayBuffer; |
| 36 | 36 |
| 37 class MediaKeyMessageEvent final : public Event { | 37 class MediaKeyMessageEvent final : public Event { |
| 38 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 39 public: | 39 public: |
| 40 ~MediaKeyMessageEvent() override; | 40 ~MediaKeyMessageEvent() override; |
| 41 | 41 |
| 42 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create() | 42 static RawPtr<MediaKeyMessageEvent> create() |
| 43 { | 43 { |
| 44 return adoptRefWillBeNoop(new MediaKeyMessageEvent); | 44 return adoptRefWillBeNoop(new MediaKeyMessageEvent); |
| 45 } | 45 } |
| 46 | 46 |
| 47 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicStrin
g& type, const MediaKeyMessageEventInit& initializer) | 47 static RawPtr<MediaKeyMessageEvent> create(const AtomicString& type, const M
ediaKeyMessageEventInit& initializer) |
| 48 { | 48 { |
| 49 return adoptRefWillBeNoop(new MediaKeyMessageEvent(type, initializer)); | 49 return new MediaKeyMessageEvent(type, initializer); |
| 50 } | 50 } |
| 51 | 51 |
| 52 const AtomicString& interfaceName() const override; | 52 const AtomicString& interfaceName() const override; |
| 53 | 53 |
| 54 String messageType() const { return m_messageType; } | 54 String messageType() const { return m_messageType; } |
| 55 DOMArrayBuffer* message() const { return m_message.get(); } | 55 DOMArrayBuffer* message() const { return m_message.get(); } |
| 56 | 56 |
| 57 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 MediaKeyMessageEvent(); | 60 MediaKeyMessageEvent(); |
| 61 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); | 61 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); |
| 62 | 62 |
| 63 String m_messageType; | 63 String m_messageType; |
| 64 RefPtr<DOMArrayBuffer> m_message; | 64 RefPtr<DOMArrayBuffer> m_message; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif // MediaKeyMessageEvent_h | 69 #endif // MediaKeyMessageEvent_h |
| OLD | NEW |