Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / public / web / WebSandboxFlags.h
blobc2984aa1127f5d89966e64f7b79d9ea11b241487
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file.
5 #ifndef WebSandboxFlags_h
6 #define WebSandboxFlags_h
8 #include "../platform/WebCommon.h"
10 namespace blink {
12 // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox
13 // for a list of the sandbox flags. This enum should be kept in sync with
14 // Source/core/dom/SandboxFlags.h. Enforced in AssertMatchingEnums.cpp
15 enum class WebSandboxFlags : int {
16 None = 0,
17 Navigation = 1,
18 Plugins = 1 << 1,
19 Origin = 1 << 2,
20 Forms = 1 << 3,
21 Scripts = 1 << 4,
22 TopNavigation = 1 << 5,
23 Popups = 1 << 6,
24 AutomaticFeatures = 1 << 7,
25 PointerLock = 1 << 8,
26 DocumentDomain = 1 << 9,
27 OrientationLock = 1 << 10,
28 PropagatesToAuxiliaryBrowsingContexts = 1 << 11,
29 Modals = 1 << 12,
30 All = -1
33 inline WebSandboxFlags operator&(WebSandboxFlags a, WebSandboxFlags b)
35 return static_cast<WebSandboxFlags>(static_cast<int>(a) & static_cast<int>(b));
38 inline WebSandboxFlags operator~(WebSandboxFlags flags)
40 return static_cast<WebSandboxFlags>(~static_cast<int>(flags));
43 } // namespace blink
45 #endif // WebSandboxFlags_h