| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 // Whether spell checking is enabled. | 127 // Whether spell checking is enabled. |
| 128 bool isSpellCheckingEnabled; | 128 bool isSpellCheckingEnabled; |
| 129 | 129 |
| 130 // Suggested filename for saving file. | 130 // Suggested filename for saving file. |
| 131 WebString suggestedFilename; | 131 WebString suggestedFilename; |
| 132 | 132 |
| 133 // The editable (possibily) misspelled word. | 133 // The editable (possibily) misspelled word. |
| 134 WebString misspelledWord; | 134 WebString misspelledWord; |
| 135 | 135 |
| 136 // The identifier of the misspelling. | |
| 137 uint32_t misspellingHash; | |
| 138 | |
| 139 // If misspelledWord is not empty, holds suggestions from the dictionary. | 136 // If misspelledWord is not empty, holds suggestions from the dictionary. |
| 140 WebVector<WebString> dictionarySuggestions; | 137 WebVector<WebString> dictionarySuggestions; |
| 141 | 138 |
| 142 // Whether context is editable. | 139 // Whether context is editable. |
| 143 bool isEditable; | 140 bool isEditable; |
| 144 | 141 |
| 145 enum InputFieldType { | 142 enum InputFieldType { |
| 146 // Not an input field. | 143 // Not an input field. |
| 147 InputFieldTypeNone, | 144 InputFieldTypeNone, |
| 148 // type = text, tel, search, number, email, url | 145 // type = text, tel, search, number, email, url |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 WebReferrerPolicy referrerPolicy; | 185 WebReferrerPolicy referrerPolicy; |
| 189 | 186 |
| 190 // Custom context menu items provided by the WebCore internals. | 187 // Custom context menu items provided by the WebCore internals. |
| 191 WebVector<WebMenuItemInfo> customItems; | 188 WebVector<WebMenuItemInfo> customItems; |
| 192 | 189 |
| 193 WebContextMenuData() | 190 WebContextMenuData() |
| 194 : mediaType(MediaTypeNone) | 191 : mediaType(MediaTypeNone) |
| 195 , hasImageContents(true) | 192 , hasImageContents(true) |
| 196 , mediaFlags(MediaNone) | 193 , mediaFlags(MediaNone) |
| 197 , isSpellCheckingEnabled(false) | 194 , isSpellCheckingEnabled(false) |
| 198 , misspellingHash(0) | |
| 199 , isEditable(false) | 195 , isEditable(false) |
| 200 , writingDirectionDefault(CheckableMenuItemDisabled) | 196 , writingDirectionDefault(CheckableMenuItemDisabled) |
| 201 , writingDirectionLeftToRight(CheckableMenuItemEnabled) | 197 , writingDirectionLeftToRight(CheckableMenuItemEnabled) |
| 202 , writingDirectionRightToLeft(CheckableMenuItemEnabled) | 198 , writingDirectionRightToLeft(CheckableMenuItemEnabled) |
| 203 , editFlags(0) { } | 199 , editFlags(0) { } |
| 204 }; | 200 }; |
| 205 | 201 |
| 206 } // namespace blink | 202 } // namespace blink |
| 207 | 203 |
| 208 #endif | 204 #endif |
| OLD | NEW |