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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp

Issue 1540303003: MediaRecorder: update to spec (3/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
index a5fba4558ef597488ec8b5f262c41a2e4dfe8b57..3871b0d0eb82a988359e85f7e0887ba33624fb64 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
@@ -6,12 +6,10 @@
#include "modules/mediarecorder/MediaRecorder.h"
#include "bindings/core/v8/Dictionary.h"
-#include "core/dom/DOMError.h"
+#include "core/events/Event.h"
#include "core/fileapi/Blob.h"
-#include "modules/EventModules.h"
#include "modules/EventTargetModules.h"
#include "modules/mediarecorder/BlobEvent.h"
-#include "modules/mediarecorder/MediaRecorderErrorEvent.h"
#include "platform/ContentType.h"
#include "platform/NotImplemented.h"
#include "platform/blob/BlobData.h"
@@ -226,8 +224,7 @@ void MediaRecorder::writeData(const char* data, size_t length, bool lastInSlice)
void MediaRecorder::failOutOfMemory(const WebString& message)
Peter Beverloo 2015/12/22 11:59:35 A few thoughts: (1) I think it's unfortunate th
mcasas 2015/12/22 20:24:40 It is, I filed corresponding issues to track this
{
- scheduleDispatchEvent(MediaRecorderErrorEvent::create(
- EventTypeNames::error, false, false, "OutOfMemory", message));
+ scheduleDispatchEvent(Event::create(EventTypeNames::error));
if (m_state == State::Recording)
stopRecording();
@@ -235,8 +232,7 @@ void MediaRecorder::failOutOfMemory(const WebString& message)
void MediaRecorder::failIllegalStreamModification(const WebString& message)
{
- scheduleDispatchEvent(MediaRecorderErrorEvent::create(
- EventTypeNames::error, false, false, "IllegalStreamModification", message));
+ scheduleDispatchEvent(Event::create(EventTypeNames::error));
if (m_state == State::Recording)
stopRecording();
@@ -244,8 +240,7 @@ void MediaRecorder::failIllegalStreamModification(const WebString& message)
void MediaRecorder::failOtherRecordingError(const WebString& message)
{
- scheduleDispatchEvent(MediaRecorderErrorEvent::create(
- EventTypeNames::error, false, false, "OtherRecordingError", message));
+ scheduleDispatchEvent(Event::create(EventTypeNames::error));
if (m_state == State::Recording)
stopRecording();

Powered by Google App Engine
This is Rietveld 408576698