Chromium Code Reviews| Index: Source/modules/mediastream/MediaRecorderErrorEvent.h |
| diff --git a/Source/modules/mediastream/MediaRecorderErrorEvent.h b/Source/modules/mediastream/MediaRecorderErrorEvent.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aaf6229ad66a4a3c8a66fa9b450459f3af8d68a8 |
| --- /dev/null |
| +++ b/Source/modules/mediastream/MediaRecorderErrorEvent.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MediaRecorderErrorEvent_h |
| +#define MediaRecorderErrorEvent_h |
| + |
| +#include "modules/EventModules.h" |
| +#include "modules/ModulesExport.h" |
| +#include "wtf/text/AtomicString.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +class MODULES_EXPORT MediaRecorderErrorEvent final : public Event { |
| + DEFINE_WRAPPERTYPEINFO(); |
| +public: |
| + virtual ~MediaRecorderErrorEvent() {} |
| + |
| + static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create() { |
| + return adoptRefWillBeNoop(new MediaRecorderErrorEvent); |
|
mlamouri (slow - plz ping)
2015/08/13 13:31:47
same as BlobEvent regarding inline methods
mcasas
2015/08/13 18:42:17
Done. And also a few on MediaRecorder.
(I was over
|
| + } |
| + |
| + static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create(const AtomicString& type, bool canBubble, bool cancelable, const String& name, const String& message) { |
| + return adoptRefWillBeNoop(new MediaRecorderErrorEvent(type, canBubble, cancelable, name, message)); |
| + } |
| + |
| + const String& name() const { return m_name; } |
| + const String& message() const { return m_message; } |
| + |
| + // Event |
| + virtual const AtomicString& interfaceName() const override { return EventNames::MediaRecorderErrorEvent; } |
| + |
| + DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } |
| + |
| +private: |
| + MediaRecorderErrorEvent() {} |
| + MediaRecorderErrorEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& name, const String& message) |
| + : Event(type, canBubble, cancelable) |
| + , m_name(name) |
| + , m_message(message) { } |
| + |
| + String m_name; |
| + String m_message; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // MediaRecorderErrorEvent_h |