| 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 #ifndef MediaKeyEvent_h | 26 #ifndef MediaKeyEvent_h |
| 27 #define MediaKeyEvent_h | 27 #define MediaKeyEvent_h |
| 28 | 28 |
| 29 #include "core/dom/DOMTypedArray.h" | 29 #include "core/dom/DOMTypedArray.h" |
| 30 #include "core/events/Event.h" | 30 #include "core/events/Event.h" |
| 31 #include "core/html/MediaKeyError.h" | 31 #include "core/html/MediaKeyError.h" |
| 32 #include "core/html/MediaKeyEventInit.h" |
| 32 | 33 |
| 33 namespace blink { | 34 namespace blink { |
| 34 | 35 |
| 35 struct MediaKeyEventInit : public EventInit { | |
| 36 MediaKeyEventInit(); | |
| 37 | |
| 38 String keySystem; | |
| 39 String sessionId; | |
| 40 RefPtr<DOMUint8Array> initData; | |
| 41 RefPtr<DOMUint8Array> message; | |
| 42 String defaultURL; | |
| 43 RefPtrWillBeMember<MediaKeyError> errorCode; | |
| 44 unsigned short systemCode; | |
| 45 }; | |
| 46 | |
| 47 class MediaKeyEvent final : public Event { | 36 class MediaKeyEvent final : public Event { |
| 48 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
| 49 public: | 38 public: |
| 50 virtual ~MediaKeyEvent(); | 39 virtual ~MediaKeyEvent(); |
| 51 | 40 |
| 52 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create() | 41 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create() |
| 53 { | 42 { |
| 54 return adoptRefWillBeNoop(new MediaKeyEvent); | 43 return adoptRefWillBeNoop(new MediaKeyEvent); |
| 55 } | 44 } |
| 56 | 45 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 80 RefPtr<DOMUint8Array> m_initData; | 69 RefPtr<DOMUint8Array> m_initData; |
| 81 RefPtr<DOMUint8Array> m_message; | 70 RefPtr<DOMUint8Array> m_message; |
| 82 String m_defaultURL; | 71 String m_defaultURL; |
| 83 RefPtrWillBeMember<MediaKeyError> m_errorCode; | 72 RefPtrWillBeMember<MediaKeyError> m_errorCode; |
| 84 unsigned short m_systemCode; | 73 unsigned short m_systemCode; |
| 85 }; | 74 }; |
| 86 | 75 |
| 87 } // namespace blink | 76 } // namespace blink |
| 88 | 77 |
| 89 #endif // MediaKeyEvent_h | 78 #endif // MediaKeyEvent_h |
| OLD | NEW |