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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // The identifier of the misspelling. | 134 // The identifier of the misspelling. |
135 uint32_t misspellingHash; | 135 uint32_t misspellingHash; |
136 | 136 |
137 // If misspelledWord is not empty, holds suggestions from the dictionary. | 137 // If misspelledWord is not empty, holds suggestions from the dictionary. |
138 WebVector<WebString> dictionarySuggestions; | 138 WebVector<WebString> dictionarySuggestions; |
139 | 139 |
140 // Whether context is editable. | 140 // Whether context is editable. |
141 bool isEditable; | 141 bool isEditable; |
142 | 142 |
| 143 enum InputFieldType { |
| 144 // Not an input field. |
| 145 InputFieldTypeNone, |
| 146 // type = text, tel, search, number, email, url |
| 147 InputFieldTypePlainText, |
| 148 // type = password |
| 149 InputFieldTypePassword, |
| 150 // type = <etc.> |
| 151 InputFieldTypeOther, |
| 152 InputFieldTypeLast = InputFieldTypeOther |
| 153 }; |
| 154 |
| 155 // If this node is an input field, the type of that field. |
| 156 InputFieldType inputFieldType; |
| 157 |
143 enum CheckableMenuItemFlags { | 158 enum CheckableMenuItemFlags { |
144 CheckableMenuItemDisabled = 0x0, | 159 CheckableMenuItemDisabled = 0x0, |
145 CheckableMenuItemEnabled = 0x1, | 160 CheckableMenuItemEnabled = 0x1, |
146 CheckableMenuItemChecked = 0x2, | 161 CheckableMenuItemChecked = 0x2, |
147 }; | 162 }; |
148 | 163 |
149 // Writing direction menu items - values are unions of | 164 // Writing direction menu items - values are unions of |
150 // CheckableMenuItemFlags. | 165 // CheckableMenuItemFlags. |
151 int writingDirectionDefault; | 166 int writingDirectionDefault; |
152 int writingDirectionLeftToRight; | 167 int writingDirectionLeftToRight; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 , isEditable(false) | 203 , isEditable(false) |
189 , writingDirectionDefault(CheckableMenuItemDisabled) | 204 , writingDirectionDefault(CheckableMenuItemDisabled) |
190 , writingDirectionLeftToRight(CheckableMenuItemEnabled) | 205 , writingDirectionLeftToRight(CheckableMenuItemEnabled) |
191 , writingDirectionRightToLeft(CheckableMenuItemEnabled) | 206 , writingDirectionRightToLeft(CheckableMenuItemEnabled) |
192 , editFlags(0) { } | 207 , editFlags(0) { } |
193 }; | 208 }; |
194 | 209 |
195 } // namespace blink | 210 } // namespace blink |
196 | 211 |
197 #endif | 212 #endif |
OLD | NEW |