Chromium Code Reviews| Index: Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp |
| diff --git a/Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp b/Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fddae8a05bb40772f914db7be14e8afaa671e368 |
| --- /dev/null |
| +++ b/Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp |
| @@ -0,0 +1,33 @@ |
| +// 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. |
| + |
| +#include "config.h" |
| + |
| +#include "modules/mediarecorder/MediaRecorderErrorEvent.h" |
| + |
| +namespace blink { |
| + |
| +// static |
| +PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> MediaRecorderErrorEvent::create() |
| +{ |
| + return adoptRefWillBeNoop(new MediaRecorderErrorEvent); |
| +} |
| + |
| +// static |
| +PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> 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 AtomicString& MediaRecorderErrorEvent::interfaceName() const |
| +{ |
| + return EventNames::MediaRecorderErrorEvent; |
| +} |
| + |
| +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) { } |
|
Peter Beverloo
2015/09/01 17:17:12
micro nit: {} on their own lines.
mcasas
2015/09/02 03:10:18
Done.
|
| + |
| +} // namespace blink |