OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MediaRecorderErrorEvent_h |
| 6 #define MediaRecorderErrorEvent_h |
| 7 |
| 8 #include "modules/EventModules.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "wtf/text/AtomicString.h" |
| 11 #include "wtf/text/WTFString.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class MODULES_EXPORT MediaRecorderErrorEvent final : public Event { |
| 16 DEFINE_WRAPPERTYPEINFO(); |
| 17 public: |
| 18 virtual ~MediaRecorderErrorEvent() {} |
| 19 |
| 20 static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create() { |
| 21 return adoptRefWillBeNoop(new MediaRecorderErrorEvent); |
| 22 } |
| 23 |
| 24 static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create(const AtomicSt
ring& type, bool canBubble, bool cancelable, const String& name, const String& m
essage) { |
| 25 return adoptRefWillBeNoop(new MediaRecorderErrorEvent(type, canBubble, c
ancelable, name, message)); |
| 26 } |
| 27 |
| 28 const String& name() const { return m_name; } |
| 29 const String& message() const { return m_message; } |
| 30 |
| 31 // Event |
| 32 virtual const AtomicString& interfaceName() const override { return EventNam
es::MediaRecorderErrorEvent; } |
| 33 |
| 34 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } |
| 35 |
| 36 private: |
| 37 MediaRecorderErrorEvent() {} |
| 38 MediaRecorderErrorEvent(const AtomicString& type, bool canBubble, bool cance
lable, const String& name, const String& message) |
| 39 : Event(type, canBubble, cancelable) |
| 40 , m_name(name) |
| 41 , m_message(message) { } |
| 42 |
| 43 String m_name; |
| 44 String m_message; |
| 45 }; |
| 46 |
| 47 } // namespace blink |
| 48 |
| 49 #endif // MediaRecorderErrorEvent_h |
OLD | NEW |