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 19 matching lines...) Expand all Loading... |
30 #include "core/dom/DOMTypedArray.h" | 30 #include "core/dom/DOMTypedArray.h" |
31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
32 #include "core/html/MediaKeyError.h" | 32 #include "core/html/MediaKeyError.h" |
33 #include "core/html/MediaKeyEventInit.h" | 33 #include "core/html/MediaKeyEventInit.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class CORE_EXPORT MediaKeyEvent final : public Event { | 37 class CORE_EXPORT MediaKeyEvent final : public Event { |
38 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
39 public: | 39 public: |
40 virtual ~MediaKeyEvent(); | 40 ~MediaKeyEvent() override; |
41 | 41 |
42 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create() | 42 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create() |
43 { | 43 { |
44 return adoptRefWillBeNoop(new MediaKeyEvent); | 44 return adoptRefWillBeNoop(new MediaKeyEvent); |
45 } | 45 } |
46 | 46 |
47 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create(const AtomicString& type
, const MediaKeyEventInit& initializer) | 47 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create(const AtomicString& type
, const MediaKeyEventInit& initializer) |
48 { | 48 { |
49 return adoptRefWillBeNoop(new MediaKeyEvent(type, initializer)); | 49 return adoptRefWillBeNoop(new MediaKeyEvent(type, initializer)); |
50 } | 50 } |
51 | 51 |
52 virtual const AtomicString& interfaceName() const override; | 52 const AtomicString& interfaceName() const override; |
53 | 53 |
54 String keySystem() const { return m_keySystem; } | 54 String keySystem() const { return m_keySystem; } |
55 String sessionId() const { return m_sessionId; } | 55 String sessionId() const { return m_sessionId; } |
56 DOMUint8Array* initData() const { return m_initData.get(); } | 56 DOMUint8Array* initData() const { return m_initData.get(); } |
57 DOMUint8Array* message() const { return m_message.get(); } | 57 DOMUint8Array* message() const { return m_message.get(); } |
58 String defaultURL() const { return m_defaultURL; } | 58 String defaultURL() const { return m_defaultURL; } |
59 MediaKeyError* errorCode() const { return m_errorCode.get(); } | 59 MediaKeyError* errorCode() const { return m_errorCode.get(); } |
60 unsigned short systemCode() const { return m_systemCode; } | 60 unsigned short systemCode() const { return m_systemCode; } |
61 | 61 |
62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
63 | 63 |
64 private: | 64 private: |
65 MediaKeyEvent(); | 65 MediaKeyEvent(); |
66 MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer
); | 66 MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer
); |
67 | 67 |
68 String m_keySystem; | 68 String m_keySystem; |
69 String m_sessionId; | 69 String m_sessionId; |
70 RefPtr<DOMUint8Array> m_initData; | 70 RefPtr<DOMUint8Array> m_initData; |
71 RefPtr<DOMUint8Array> m_message; | 71 RefPtr<DOMUint8Array> m_message; |
72 String m_defaultURL; | 72 String m_defaultURL; |
73 RefPtrWillBeMember<MediaKeyError> m_errorCode; | 73 RefPtrWillBeMember<MediaKeyError> m_errorCode; |
74 unsigned short m_systemCode; | 74 unsigned short m_systemCode; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace blink | 77 } // namespace blink |
78 | 78 |
79 #endif // MediaKeyEvent_h | 79 #endif // MediaKeyEvent_h |
OLD | NEW |