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

Side by Side Diff: third_party/WebKit/Source/web/AssertMatchingEnums.cpp

Issue 2850553002: Autoplay: use an autoplay policy setting in Blink. (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "core/fileapi/FileError.h" 43 #include "core/fileapi/FileError.h"
44 #include "core/frame/Frame.h" 44 #include "core/frame/Frame.h"
45 #include "core/frame/FrameTypes.h" 45 #include "core/frame/FrameTypes.h"
46 #include "core/frame/LocalFrameClient.h" 46 #include "core/frame/LocalFrameClient.h"
47 #include "core/frame/Settings.h" 47 #include "core/frame/Settings.h"
48 #include "core/frame/csp/CSPSource.h" 48 #include "core/frame/csp/CSPSource.h"
49 #include "core/frame/csp/ContentSecurityPolicy.h" 49 #include "core/frame/csp/ContentSecurityPolicy.h"
50 #include "core/html/HTMLInputElement.h" 50 #include "core/html/HTMLInputElement.h"
51 #include "core/html/HTMLMediaElement.h" 51 #include "core/html/HTMLMediaElement.h"
52 #include "core/html/forms/TextControlInnerElements.h" 52 #include "core/html/forms/TextControlInnerElements.h"
53 #include "core/html/media/AutoplayPolicy.h"
53 #include "core/layout/compositing/CompositedSelectionBound.h" 54 #include "core/layout/compositing/CompositedSelectionBound.h"
54 #include "core/loader/FrameLoaderTypes.h" 55 #include "core/loader/FrameLoaderTypes.h"
55 #include "core/loader/NavigationPolicy.h" 56 #include "core/loader/NavigationPolicy.h"
56 #include "core/loader/appcache/ApplicationCacheHost.h" 57 #include "core/loader/appcache/ApplicationCacheHost.h"
57 #include "core/page/PageVisibilityState.h" 58 #include "core/page/PageVisibilityState.h"
58 #include "core/style/ComputedStyleConstants.h" 59 #include "core/style/ComputedStyleConstants.h"
59 #include "modules/accessibility/AXObject.h" 60 #include "modules/accessibility/AXObject.h"
60 #include "modules/indexeddb/IDBKey.h" 61 #include "modules/indexeddb/IDBKey.h"
61 #include "modules/indexeddb/IDBKeyPath.h" 62 #include "modules/indexeddb/IDBKeyPath.h"
62 #include "modules/indexeddb/IDBMetadata.h" 63 #include "modules/indexeddb/IDBMetadata.h"
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::kLoadEvent, 881 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::kLoadEvent,
881 ProgressBarCompletion::kLoadEvent); 882 ProgressBarCompletion::kLoadEvent);
882 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::kResourcesBeforeDCL, 883 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::kResourcesBeforeDCL,
883 ProgressBarCompletion::kResourcesBeforeDCL); 884 ProgressBarCompletion::kResourcesBeforeDCL);
884 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::kDOMContentLoaded, 885 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::kDOMContentLoaded,
885 ProgressBarCompletion::kDOMContentLoaded); 886 ProgressBarCompletion::kDOMContentLoaded);
886 STATIC_ASSERT_ENUM( 887 STATIC_ASSERT_ENUM(
887 WebSettings::ProgressBarCompletion::kResourcesBeforeDCLAndSameOriginIFrames, 888 WebSettings::ProgressBarCompletion::kResourcesBeforeDCLAndSameOriginIFrames,
888 ProgressBarCompletion::kResourcesBeforeDCLAndSameOriginIFrames); 889 ProgressBarCompletion::kResourcesBeforeDCLAndSameOriginIFrames);
889 890
891 STATIC_ASSERT_ENUM(WebSettings::AutoplayPolicy::kNoUserGestureRequired,
892 AutoplayPolicy::Type::kNoUserGestureRequired);
893 STATIC_ASSERT_ENUM(WebSettings::AutoplayPolicy::kUserGestureRequired,
894 AutoplayPolicy::Type::kUserGestureRequired);
895 STATIC_ASSERT_ENUM(
896 WebSettings::AutoplayPolicy::kUserGestureRequiredForCrossOrigin,
897 AutoplayPolicy::Type::kUserGestureRequiredForCrossOrigin);
898
890 // This ensures that the version number published in 899 // This ensures that the version number published in
891 // WebSerializedScriptValueVersion.h matches the serializer's understanding. 900 // WebSerializedScriptValueVersion.h matches the serializer's understanding.
892 // TODO(jbroman): Fix this to also account for the V8-side version. See 901 // TODO(jbroman): Fix this to also account for the V8-side version. See
893 // https://crbug.com/704293. 902 // https://crbug.com/704293.
894 static_assert(kSerializedScriptValueVersion == 903 static_assert(kSerializedScriptValueVersion ==
895 SerializedScriptValue::kWireFormatVersion, 904 SerializedScriptValue::kWireFormatVersion,
896 "Update WebSerializedScriptValueVersion.h."); 905 "Update WebSerializedScriptValueVersion.h.");
897 906
898 } // namespace blink 907 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp ('k') | third_party/WebKit/Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698