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

Unified Diff: third_party/WebKit/Source/core/dom/DOMException.cpp

Issue 1576283003: Have HTMLMediaElement::play() return a Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update layout tests Created 4 years, 10 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: third_party/WebKit/Source/core/dom/DOMException.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMException.cpp b/third_party/WebKit/Source/core/dom/DOMException.cpp
index a8b1414ebac5629ed43768d09c9953887f6c5821..3dc08290745fdf80dd20106d4aa23f7e32972b06 100644
--- a/third_party/WebKit/Source/core/dom/DOMException.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMException.cpp
@@ -37,6 +37,7 @@ static const struct CoreException {
const char* const message;
const int code;
} coreExceptions[] = {
+ // This list must be kept in sync with the one in ExceptionCode.h
{ "IndexSizeError", "Index or size was negative, or greater than the allowed value.", 1 },
{ "HierarchyRequestError", "A Node was inserted somewhere it doesn't belong.", 3 },
{ "WrongDocumentError", "A Node was used in a different document than the one that created it (that doesn't support it).", 4 },
@@ -81,6 +82,12 @@ static const struct CoreException {
// Push API
{ "PermissionDeniedError", "User or security policy denied the request.", 0 },
+
+ // Used by HTML and Media Session API.
+ { "NotAllowedError", "The request is not allowed by the user agent or the platform in the current context.", 0 },
+
+ // Please add new entries at the end of this list to guarantee any ordering
+ // expectations.
};
static const CoreException* getErrorEntry(ExceptionCode ec)

Powered by Google App Engine
This is Rietveld 408576698