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

Side by Side Diff: public/web/WebSandboxFlags.h

Issue 1126253007: Block modal dialogs inside sandboxes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebSandboxFlags. Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #ifndef WebSandboxFlags_h 5 #ifndef WebSandboxFlags_h
6 #define WebSandboxFlags_h 6 #define WebSandboxFlags_h
7 7
8 #include "../platform/WebCommon.h" 8 #include "../platform/WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox 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 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 14 // Source/core/dom/SandboxFlags.h. Enforced in AssertMatchingEnums.cpp
15 enum class WebSandboxFlags : int { 15 enum class WebSandboxFlags : int {
16 None = 0, 16 None = 0,
17 Navigation = 1, 17 Navigation = 1,
18 Plugins = 1 << 1, 18 Plugins = 1 << 1,
19 Origin = 1 << 2, 19 Origin = 1 << 2,
20 Forms = 1 << 3, 20 Forms = 1 << 3,
21 Scripts = 1 << 4, 21 Scripts = 1 << 4,
22 TopNavigation = 1 << 5, 22 TopNavigation = 1 << 5,
23 Popups = 1 << 6, 23 Popups = 1 << 6,
24 AutomaticFeatures = 1 << 7, 24 AutomaticFeatures = 1 << 7,
25 PointerLock = 1 << 8, 25 PointerLock = 1 << 8,
26 DocumentDomain = 1 << 9, 26 DocumentDomain = 1 << 9,
27 OrientationLock = 1 << 10, 27 OrientationLock = 1 << 10,
28 PropagatesToAuxiliaryBrowsingContexts = 1 << 11,
29 Modals = 1 << 12,
28 All = -1 30 All = -1
29 }; 31 };
30 32
31 } // namespace blink 33 } // namespace blink
32 34
33 #endif // WebSandboxFlags_h 35 #endif // WebSandboxFlags_h
OLDNEW
« Source/core/frame/LocalDOMWindow.cpp ('K') | « Source/web/AssertMatchingEnums.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698