OLD | NEW |
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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebFrameOwnerProperties_h | 5 #ifndef WebFrameOwnerProperties_h |
6 #define WebFrameOwnerProperties_h | 6 #define WebFrameOwnerProperties_h |
7 | 7 |
8 #include "../platform/WebString.h" | 8 #include "../platform/WebString.h" |
9 #include "../platform/WebVector.h" | 9 #include "../platform/WebVector.h" |
10 #include "third_party/WebKit/public/platform/modules/permissions/permission.mojo
m-shared.h" | 10 #include "third_party/WebKit/public/platform/modules/permissions/permission.mojo
m-shared.h" |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 struct WebFrameOwnerProperties { | 16 struct WebFrameOwnerProperties { |
17 enum class ScrollingMode { Auto, AlwaysOff, AlwaysOn, Last = AlwaysOn }; | 17 enum class ScrollingMode { Auto, AlwaysOff, AlwaysOn, Last = AlwaysOn }; |
18 | 18 |
19 WebString name; // browsing context container's name | 19 WebString name; // browsing context container's name |
20 ScrollingMode scrollingMode; | 20 ScrollingMode scrollingMode; |
21 int marginWidth; | 21 int marginWidth; |
22 int marginHeight; | 22 int marginHeight; |
23 bool allowFullscreen; | 23 bool allowFullscreen; |
24 bool allowPaymentRequest; | 24 bool allowPaymentRequest; |
25 bool isDisplayNone; | |
26 WebString requiredCsp; | 25 WebString requiredCsp; |
27 WebVector<mojom::PermissionName> delegatedPermissions; | 26 WebVector<mojom::PermissionName> delegatedPermissions; |
28 | 27 |
29 WebFrameOwnerProperties() | 28 WebFrameOwnerProperties() |
30 : scrollingMode(ScrollingMode::Auto), | 29 : scrollingMode(ScrollingMode::Auto), |
31 marginWidth(-1), | 30 marginWidth(-1), |
32 marginHeight(-1), | 31 marginHeight(-1), |
33 allowFullscreen(false), | 32 allowFullscreen(false), |
34 allowPaymentRequest(false), | 33 allowPaymentRequest(false) {} |
35 isDisplayNone(false) {} | |
36 | 34 |
37 #if INSIDE_BLINK | 35 #if INSIDE_BLINK |
38 WebFrameOwnerProperties( | 36 WebFrameOwnerProperties( |
39 const WebString& name, | 37 const WebString& name, |
40 ScrollbarMode scrollingMode, | 38 ScrollbarMode scrollingMode, |
41 int marginWidth, | 39 int marginWidth, |
42 int marginHeight, | 40 int marginHeight, |
43 bool allowFullscreen, | 41 bool allowFullscreen, |
44 bool allowPaymentRequest, | 42 bool allowPaymentRequest, |
45 bool isDisplayNone, | |
46 const WebString& requiredCsp, | 43 const WebString& requiredCsp, |
47 const WebVector<mojom::PermissionName>& delegatedPermissions) | 44 const WebVector<mojom::PermissionName>& delegatedPermissions) |
48 : name(name), | 45 : name(name), |
49 scrollingMode(static_cast<ScrollingMode>(scrollingMode)), | 46 scrollingMode(static_cast<ScrollingMode>(scrollingMode)), |
50 marginWidth(marginWidth), | 47 marginWidth(marginWidth), |
51 marginHeight(marginHeight), | 48 marginHeight(marginHeight), |
52 allowFullscreen(allowFullscreen), | 49 allowFullscreen(allowFullscreen), |
53 allowPaymentRequest(allowPaymentRequest), | 50 allowPaymentRequest(allowPaymentRequest), |
54 isDisplayNone(isDisplayNone), | |
55 requiredCsp(requiredCsp), | 51 requiredCsp(requiredCsp), |
56 delegatedPermissions(delegatedPermissions) {} | 52 delegatedPermissions(delegatedPermissions) {} |
57 #endif | 53 #endif |
58 }; | 54 }; |
59 | 55 |
60 } // namespace blink | 56 } // namespace blink |
61 | 57 |
62 #endif | 58 #endif |
OLD | NEW |