LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * Copyright (C) 2006-2016 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006-2016 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 24 matching lines...) Expand all Loading... |
35 // This state indicates we are ready to commit to a page, | 35 // This state indicates we are ready to commit to a page, |
36 // which means the view will transition to use the new data source. | 36 // which means the view will transition to use the new data source. |
37 FrameStateCommittedPage, | 37 FrameStateCommittedPage, |
38 FrameStateComplete | 38 FrameStateComplete |
39 }; | 39 }; |
40 | 40 |
41 enum class PolicyAction { | 41 enum class PolicyAction { |
42 Use, | 42 Use, |
43 Download, | 43 Download, |
44 Ignore, | 44 Ignore, |
| 45 IgnoreAndLockBackForwardList, |
45 Suspend, | 46 Suspend, |
46 }; | 47 }; |
47 | 48 |
48 enum class ReloadOption { | 49 enum class ReloadOption { |
49 ExpiredOnly = 1 << 0, | 50 ExpiredOnly = 1 << 0, |
50 FromOrigin = 1 << 1, | 51 FromOrigin = 1 << 1, |
51 DisableContentBlockers = 1 << 2, | 52 DisableContentBlockers = 1 << 2, |
52 }; | 53 }; |
53 | 54 |
54 enum class FrameLoadType { | 55 enum class FrameLoadType { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 154 |
154 template<typename> struct EnumTraits; | 155 template<typename> struct EnumTraits; |
155 template<typename E, E...> struct EnumValues; | 156 template<typename E, E...> struct EnumValues; |
156 | 157 |
157 template<> struct EnumTraits<WebCore::PolicyAction> { | 158 template<> struct EnumTraits<WebCore::PolicyAction> { |
158 using values = EnumValues< | 159 using values = EnumValues< |
159 WebCore::PolicyAction, | 160 WebCore::PolicyAction, |
160 WebCore::PolicyAction::Use, | 161 WebCore::PolicyAction::Use, |
161 WebCore::PolicyAction::Download, | 162 WebCore::PolicyAction::Download, |
162 WebCore::PolicyAction::Ignore, | 163 WebCore::PolicyAction::Ignore, |
| 164 WebCore::PolicyAction::IgnoreAndLockBackForwardList, |
163 WebCore::PolicyAction::Suspend | 165 WebCore::PolicyAction::Suspend |
164 >; | 166 >; |
165 }; | 167 }; |
166 | 168 |
167 template<> struct EnumTraits<WebCore::FrameLoadType> { | 169 template<> struct EnumTraits<WebCore::FrameLoadType> { |
168 using values = EnumValues< | 170 using values = EnumValues< |
169 WebCore::FrameLoadType, | 171 WebCore::FrameLoadType, |
170 WebCore::FrameLoadType::Standard, | 172 WebCore::FrameLoadType::Standard, |
171 WebCore::FrameLoadType::Back, | 173 WebCore::FrameLoadType::Back, |
172 WebCore::FrameLoadType::Forward, | 174 WebCore::FrameLoadType::Forward, |
173 WebCore::FrameLoadType::IndexedBackForward, | 175 WebCore::FrameLoadType::IndexedBackForward, |
174 WebCore::FrameLoadType::Reload, | 176 WebCore::FrameLoadType::Reload, |
175 WebCore::FrameLoadType::Same, | 177 WebCore::FrameLoadType::Same, |
176 WebCore::FrameLoadType::RedirectWithLockedBackForwardList, | 178 WebCore::FrameLoadType::RedirectWithLockedBackForwardList, |
177 WebCore::FrameLoadType::Replace, | 179 WebCore::FrameLoadType::Replace, |
178 WebCore::FrameLoadType::ReloadFromOrigin, | 180 WebCore::FrameLoadType::ReloadFromOrigin, |
179 WebCore::FrameLoadType::ReloadExpiredOnly | 181 WebCore::FrameLoadType::ReloadExpiredOnly |
180 >; | 182 >; |
181 }; | 183 }; |
182 | 184 |
| 185 template<> struct EnumTraits<WebCore::LockBackForwardList> { |
| 186 using values = EnumValues< |
| 187 WebCore::LockBackForwardList, |
| 188 WebCore::LockBackForwardList::Yes, |
| 189 WebCore::LockBackForwardList::No |
| 190 >; |
| 191 }; |
| 192 |
183 } // namespace WTF | 193 } // namespace WTF |
LEFT | RIGHT |