Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1369)

Unified Diff: Source/modules/mediastream/MediaRecorderErrorEvent.h

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..91c16c4b5790c35b81d032eca2320a2d3160eede
--- /dev/null
+++ b/Source/modules/mediastream/MediaRecorderErrorEvent.h
@@ -0,0 +1,42 @@
+// 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();
+ static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create(const AtomicString& type, bool canBubble, bool cancelable, const String& name, const String& message);
+
+ const String& name() const { return m_name; }
+ const String& message() const { return m_message; }
+
+ // Event
+ virtual const AtomicString& interfaceName() const override;
+
+ DECLARE_VIRTUAL_TRACE();
Peter Beverloo 2015/07/29 16:54:22 nit: Since it only traces the parent class, you co
mcasas 2015/07/30 13:20:36 Done.
+
+private:
+ MediaRecorderErrorEvent();
+ MediaRecorderErrorEvent(const AtomicString& type, bool canBubble,
+ bool cancelable, const String& name, const String& message);
Peter Beverloo 2015/07/29 16:54:22 nit: Either don't break lines, or do it consistent
mcasas 2015/07/30 13:20:36 Done.
+
+ String m_name;
+ String m_message;
+};
+
+} // namespace blink
+
+#endif // MediaRecorderErrorEvent_h

Powered by Google App Engine
This is Rietveld 408576698