Index: third_party/WebKit/Source/web/AssertMatchingEnums.cpp |
diff --git a/third_party/WebKit/Source/web/AssertMatchingEnums.cpp b/third_party/WebKit/Source/web/AssertMatchingEnums.cpp |
index 566fa9342c7a956fb9c28144235f8dacdd96fe1a..bc818bbcf5669b06f56fa9504bc679ba7b857509 100644 |
--- a/third_party/WebKit/Source/web/AssertMatchingEnums.cpp |
+++ b/third_party/WebKit/Source/web/AssertMatchingEnums.cpp |
@@ -50,6 +50,7 @@ |
#include "core/html/HTMLInputElement.h" |
#include "core/html/HTMLMediaElement.h" |
#include "core/html/forms/TextControlInnerElements.h" |
+#include "core/html/media/AutoplayPolicy.h" |
#include "core/layout/compositing/CompositedSelectionBound.h" |
#include "core/loader/FrameLoaderTypes.h" |
#include "core/loader/NavigationPolicy.h" |
@@ -887,6 +888,14 @@ STATIC_ASSERT_ENUM( |
WebSettings::ProgressBarCompletion::kResourcesBeforeDCLAndSameOriginIFrames, |
ProgressBarCompletion::kResourcesBeforeDCLAndSameOriginIFrames); |
+STATIC_ASSERT_ENUM(WebSettings::AutoplayPolicy::kNoUserGestureRequired, |
+ AutoplayPolicy::Type::kNoUserGestureRequired); |
+STATIC_ASSERT_ENUM(WebSettings::AutoplayPolicy::kUserGestureRequired, |
+ AutoplayPolicy::Type::kUserGestureRequired); |
+STATIC_ASSERT_ENUM( |
+ WebSettings::AutoplayPolicy::kUserGestureRequiredForCrossOrigin, |
+ AutoplayPolicy::Type::kUserGestureRequiredForCrossOrigin); |
+ |
// This ensures that the version number published in |
// WebSerializedScriptValueVersion.h matches the serializer's understanding. |
// TODO(jbroman): Fix this to also account for the V8-side version. See |