| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 base::string16 title_text; | 113 base::string16 title_text; |
| 114 | 114 |
| 115 // This is the suggested filename to be used when saving file through "Save | 115 // This is the suggested filename to be used when saving file through "Save |
| 116 // Link As" option of context menu. | 116 // Link As" option of context menu. |
| 117 base::string16 suggested_filename; | 117 base::string16 suggested_filename; |
| 118 | 118 |
| 119 // The misspelled word under the cursor, if any. Used to generate the | 119 // The misspelled word under the cursor, if any. Used to generate the |
| 120 // |dictionary_suggestions| list. | 120 // |dictionary_suggestions| list. |
| 121 base::string16 misspelled_word; | 121 base::string16 misspelled_word; |
| 122 | 122 |
| 123 // The identifier of the misspelling under the cursor, if any. | |
| 124 uint32_t misspelling_hash; | |
| 125 | |
| 126 // Suggested replacements for a misspelled word under the cursor. | 123 // Suggested replacements for a misspelled word under the cursor. |
| 127 // This vector gets populated in the render process host | 124 // This vector gets populated in the render process host |
| 128 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter | 125 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter |
| 129 // and populating dictionary_suggestions if the type is EDITABLE | 126 // and populating dictionary_suggestions if the type is EDITABLE |
| 130 // and the misspelled_word is not empty. | 127 // and the misspelled_word is not empty. |
| 131 std::vector<base::string16> dictionary_suggestions; | 128 std::vector<base::string16> dictionary_suggestions; |
| 132 | 129 |
| 133 // If editable, flag for whether spell check is enabled or not. | 130 // If editable, flag for whether spell check is enabled or not. |
| 134 bool spellcheck_enabled; | 131 bool spellcheck_enabled; |
| 135 | 132 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 166 gfx::Point selection_end; | 163 gfx::Point selection_end; |
| 167 #endif | 164 #endif |
| 168 | 165 |
| 169 // If this node is an input field, the type of that field. | 166 // If this node is an input field, the type of that field. |
| 170 blink::WebContextMenuData::InputFieldType input_field_type; | 167 blink::WebContextMenuData::InputFieldType input_field_type; |
| 171 }; | 168 }; |
| 172 | 169 |
| 173 } // namespace content | 170 } // namespace content |
| 174 | 171 |
| 175 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 172 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
| OLD | NEW |