OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 CanCopy = 0x8, | 177 CanCopy = 0x8, |
178 CanPaste = 0x10, | 178 CanPaste = 0x10, |
179 CanDelete = 0x20, | 179 CanDelete = 0x20, |
180 CanSelectAll = 0x40, | 180 CanSelectAll = 0x40, |
181 CanTranslate = 0x80, | 181 CanTranslate = 0x80, |
182 }; | 182 }; |
183 | 183 |
184 // Which edit operations are available in the context. | 184 // Which edit operations are available in the context. |
185 int editFlags; | 185 int editFlags; |
186 | 186 |
187 // Security information for the context. | |
188 WebCString securityInfo; | |
189 | |
190 // The referrer policy applicable to this context. | 187 // The referrer policy applicable to this context. |
191 WebReferrerPolicy referrerPolicy; | 188 WebReferrerPolicy referrerPolicy; |
192 | 189 |
193 // Custom context menu items provided by the WebCore internals. | 190 // Custom context menu items provided by the WebCore internals. |
194 WebVector<WebMenuItemInfo> customItems; | 191 WebVector<WebMenuItemInfo> customItems; |
195 | 192 |
196 WebContextMenuData() | 193 WebContextMenuData() |
197 : mediaType(MediaTypeNone) | 194 : mediaType(MediaTypeNone) |
198 , hasImageContents(true) | 195 , hasImageContents(true) |
199 , mediaFlags(MediaNone) | 196 , mediaFlags(MediaNone) |
200 , isSpellCheckingEnabled(false) | 197 , isSpellCheckingEnabled(false) |
201 , misspellingHash(0) | 198 , misspellingHash(0) |
202 , isEditable(false) | 199 , isEditable(false) |
203 , writingDirectionDefault(CheckableMenuItemDisabled) | 200 , writingDirectionDefault(CheckableMenuItemDisabled) |
204 , writingDirectionLeftToRight(CheckableMenuItemEnabled) | 201 , writingDirectionLeftToRight(CheckableMenuItemEnabled) |
205 , writingDirectionRightToLeft(CheckableMenuItemEnabled) | 202 , writingDirectionRightToLeft(CheckableMenuItemEnabled) |
206 , editFlags(0) { } | 203 , editFlags(0) { } |
207 }; | 204 }; |
208 | 205 |
209 } // namespace blink | 206 } // namespace blink |
210 | 207 |
211 #endif | 208 #endif |
OLD | NEW |