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

Unified Diff: Source/modules/mediarecorder/MediaRecorderErrorEvent.idl

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: esprehn@ last comments Created 5 years, 3 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
« no previous file with comments | « Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp ('k') | Source/modules/mediarecorder/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediarecorder/MediaRecorderErrorEvent.idl
diff --git a/Source/modules/mediarecorder/MediaRecorderErrorEvent.idl b/Source/modules/mediarecorder/MediaRecorderErrorEvent.idl
new file mode 100644
index 0000000000000000000000000000000000000000..f1cde7ca5e5b699fe2066a0ba5a52cc42e67fc95
--- /dev/null
+++ b/Source/modules/mediarecorder/MediaRecorderErrorEvent.idl
@@ -0,0 +1,23 @@
+// 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.
+
+// https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderErrorEvent
+// https://w3c.github.io/mediacapture-record/MediaRecorder.html#idl-def-RecordingErrorNameEnum
+
+// TODO(mcasas): Remove completely MediaRecorderErrorEvent.* and use generic DOMException instead, see https://github.com/w3c/mediacapture-record/issues/14.
+enum RecordingErrorNameEnum {
+ "InvalidState",
+ "OutOfMemory",
+ "IllegalStreamModification",
+ "SecurityError",
+ "OtherRecordingError"
+};
+
+// TODO(mcasas): This object should not be a NoInterfaceObject, https://github.com/w3c/mediacapture-record/issues/15.
+[
+ NoInterfaceObject
+] interface MediaRecorderErrorEvent : Event {
+ readonly attribute RecordingErrorNameEnum name;
+ readonly attribute DOMString? message;
+};
« no previous file with comments | « Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp ('k') | Source/modules/mediarecorder/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698