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

Unified Diff: Source/modules/mediasource/WebKitMediaSource.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/mediasource/SourceBuffer.cpp ('k') | Source/modules/mediasource/WebKitSourceBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/WebKitMediaSource.cpp
diff --git a/Source/modules/mediasource/WebKitMediaSource.cpp b/Source/modules/mediasource/WebKitMediaSource.cpp
index 6a1f8e0e1c722cea399a26c55bf7eea4a3801f4d..31faa72c330118ba630bf7489a09d58284a2e448 100644
--- a/Source/modules/mediasource/WebKitMediaSource.cpp
+++ b/Source/modules/mediasource/WebKitMediaSource.cpp
@@ -69,10 +69,10 @@ WebKitSourceBufferList* WebKitMediaSource::activeSourceBuffers()
WebKitSourceBuffer* WebKitMediaSource::addSourceBuffer(const String& type, ExceptionCode& ec)
{
// 3.1 http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-addsourcebuffer
- // 1. If type is null or an empty then throw an INVALID_ACCESS_ERR exception and
+ // 1. If type is null or an empty then throw an InvalidAccessError exception and
// abort these steps.
if (type.isNull() || type.isEmpty()) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return 0;
}
@@ -84,9 +84,9 @@ WebKitSourceBuffer* WebKitMediaSource::addSourceBuffer(const String& type, Excep
}
// 4. If the readyState attribute is not in the "open" state then throw an
- // INVALID_STATE_ERR exception and abort these steps.
+ // InvalidStateError exception and abort these steps.
if (!isOpen()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
@@ -108,17 +108,17 @@ WebKitSourceBuffer* WebKitMediaSource::addSourceBuffer(const String& type, Excep
void WebKitMediaSource::removeSourceBuffer(WebKitSourceBuffer* buffer, ExceptionCode& ec)
{
// 3.1 http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-removesourcebuffer
- // 1. If sourceBuffer is null then throw an INVALID_ACCESS_ERR exception and
+ // 1. If sourceBuffer is null then throw an InvalidAccessError exception and
// abort these steps.
if (!buffer) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return;
}
- // 2. If sourceBuffers is empty then throw an INVALID_STATE_ERR exception and
+ // 2. If sourceBuffers is empty then throw an InvalidStateError exception and
// abort these steps.
if (isClosed() || !m_sourceBuffers->length()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return;
}
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.cpp ('k') | Source/modules/mediasource/WebKitSourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698