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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 enum EditFlags { | 170 enum EditFlags { |
171 kCanDoNone = 0x0, | 171 kCanDoNone = 0x0, |
172 kCanUndo = 0x1, | 172 kCanUndo = 0x1, |
173 kCanRedo = 0x2, | 173 kCanRedo = 0x2, |
174 kCanCut = 0x4, | 174 kCanCut = 0x4, |
175 kCanCopy = 0x8, | 175 kCanCopy = 0x8, |
176 kCanPaste = 0x10, | 176 kCanPaste = 0x10, |
177 kCanDelete = 0x20, | 177 kCanDelete = 0x20, |
178 kCanSelectAll = 0x40, | 178 kCanSelectAll = 0x40, |
179 kCanTranslate = 0x80, | 179 kCanTranslate = 0x80, |
| 180 kCanEditRichly = 0x100, |
180 }; | 181 }; |
181 | 182 |
182 // Which edit operations are available in the context. | 183 // Which edit operations are available in the context. |
183 int edit_flags; | 184 int edit_flags; |
184 | 185 |
185 // The referrer policy applicable to this context. | 186 // The referrer policy applicable to this context. |
186 WebReferrerPolicy referrer_policy; | 187 WebReferrerPolicy referrer_policy; |
187 | 188 |
188 // Custom context menu items provided by the WebCore internals. | 189 // Custom context menu items provided by the WebCore internals. |
189 WebVector<WebMenuItemInfo> custom_items; | 190 WebVector<WebMenuItemInfo> custom_items; |
190 | 191 |
191 WebContextMenuData() | 192 WebContextMenuData() |
192 : media_type(kMediaTypeNone), | 193 : media_type(kMediaTypeNone), |
193 has_image_contents(false), | 194 has_image_contents(false), |
194 media_flags(kMediaNone), | 195 media_flags(kMediaNone), |
195 is_spell_checking_enabled(false), | 196 is_spell_checking_enabled(false), |
196 is_editable(false), | 197 is_editable(false), |
197 writing_direction_default(kCheckableMenuItemDisabled), | 198 writing_direction_default(kCheckableMenuItemDisabled), |
198 writing_direction_left_to_right(kCheckableMenuItemEnabled), | 199 writing_direction_left_to_right(kCheckableMenuItemEnabled), |
199 writing_direction_right_to_left(kCheckableMenuItemEnabled), | 200 writing_direction_right_to_left(kCheckableMenuItemEnabled), |
200 edit_flags(0) {} | 201 edit_flags(0) {} |
201 }; | 202 }; |
202 | 203 |
203 } // namespace blink | 204 } // namespace blink |
204 | 205 |
205 #endif | 206 #endif |
OLD | NEW |