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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 struct MediaKeyMessageEventInit : public EventInit { | 36 struct MediaKeyMessageEventInit : public EventInit { |
37 MediaKeyMessageEventInit(); | 37 MediaKeyMessageEventInit(); |
38 | 38 |
39 RefPtr<ArrayBuffer> message; | 39 RefPtr<ArrayBuffer> message; |
40 String destinationURL; | 40 String destinationURL; |
41 }; | 41 }; |
42 | 42 |
43 class MediaKeyMessageEvent FINAL : public Event { | 43 class MediaKeyMessageEvent final : public Event { |
44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
45 public: | 45 public: |
46 virtual ~MediaKeyMessageEvent(); | 46 virtual ~MediaKeyMessageEvent(); |
47 | 47 |
48 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create() | 48 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create() |
49 { | 49 { |
50 return adoptRefWillBeNoop(new MediaKeyMessageEvent); | 50 return adoptRefWillBeNoop(new MediaKeyMessageEvent); |
51 } | 51 } |
52 | 52 |
53 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicStrin
g& type, const MediaKeyMessageEventInit& initializer) | 53 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicStrin
g& type, const MediaKeyMessageEventInit& initializer) |
54 { | 54 { |
55 return adoptRefWillBeNoop(new MediaKeyMessageEvent(type, initializer)); | 55 return adoptRefWillBeNoop(new MediaKeyMessageEvent(type, initializer)); |
56 } | 56 } |
57 | 57 |
58 virtual const AtomicString& interfaceName() const OVERRIDE; | 58 virtual const AtomicString& interfaceName() const override; |
59 | 59 |
60 ArrayBuffer* message() const { return m_message.get(); } | 60 ArrayBuffer* message() const { return m_message.get(); } |
61 String destinationURL() const { return m_destinationURL; } | 61 String destinationURL() const { return m_destinationURL; } |
62 | 62 |
63 virtual void trace(Visitor*) OVERRIDE; | 63 virtual void trace(Visitor*) override; |
64 | 64 |
65 private: | 65 private: |
66 MediaKeyMessageEvent(); | 66 MediaKeyMessageEvent(); |
67 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); | 67 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); |
68 | 68 |
69 RefPtr<ArrayBuffer> m_message; | 69 RefPtr<ArrayBuffer> m_message; |
70 String m_destinationURL; | 70 String m_destinationURL; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace blink | 73 } // namespace blink |
74 | 74 |
75 #endif // MediaKeyMessageEvent_h | 75 #endif // MediaKeyMessageEvent_h |
OLD | NEW |