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

Unified Diff: Source/core/html/HTMLVideoElement.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: MessagePort. Created 7 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: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index 2d88a665022a0ecb8a96f9edb04fcc303efc905d..f978ec97d3fb6a6181f71d67f4e5df8d3164deaa 100644
--- a/Source/core/html/HTMLVideoElement.cpp
+++ b/Source/core/html/HTMLVideoElement.cpp
@@ -28,7 +28,6 @@
#include "CSSPropertyNames.h"
#include "HTMLNames.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/Attribute.h"
#include "core/dom/Document.h"
@@ -213,11 +212,11 @@ void HTMLVideoElement::webkitEnterFullscreen(ExceptionState& exceptionState)
// Generate an exception if this isn't called in response to a user gesture, or if the
// element does not support fullscreen.
if (userGestureRequiredForFullscreen() && !UserGestureIndicator::processingUserGesture()) {
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("enterFullscreen", "HTMLVideoElement", "This element may only enter fullscreen mode in response to a user gesture ('click', for example)."));
+ exceptionState.throwDOMException(InvalidStateError, "This element may only enter fullscreen mode in response to a user gesture ('click', for example).");
return;
}
if (!supportsFullscreen()) {
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("enterFullscreen", "HTMLVideoElement", "This element does not support fullscreen mode."));
+ exceptionState.throwDOMException(InvalidStateError, "This element does not support fullscreen mode.");
return;
}

Powered by Google App Engine
This is Rietveld 408576698