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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 base::string16 selection_text; | 105 base::string16 selection_text; |
106 | 106 |
107 // This is the suggested filename to be used when saving file through "Save | 107 // This is the suggested filename to be used when saving file through "Save |
108 // Link As" option of context menu. | 108 // Link As" option of context menu. |
109 base::string16 suggested_filename; | 109 base::string16 suggested_filename; |
110 | 110 |
111 // The misspelled word under the cursor, if any. Used to generate the | 111 // The misspelled word under the cursor, if any. Used to generate the |
112 // |dictionary_suggestions| list. | 112 // |dictionary_suggestions| list. |
113 base::string16 misspelled_word; | 113 base::string16 misspelled_word; |
114 | 114 |
| 115 // The identifier of the misspelling under the cursor, if any. |
| 116 uint32 misspelling_hash; |
| 117 |
115 // Suggested replacements for a misspelled word under the cursor. | 118 // Suggested replacements for a misspelled word under the cursor. |
116 // This vector gets populated in the render process host | 119 // This vector gets populated in the render process host |
117 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter | 120 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter |
118 // and populating dictionary_suggestions if the type is EDITABLE | 121 // and populating dictionary_suggestions if the type is EDITABLE |
119 // and the misspelled_word is not empty. | 122 // and the misspelled_word is not empty. |
120 std::vector<base::string16> dictionary_suggestions; | 123 std::vector<base::string16> dictionary_suggestions; |
121 | 124 |
122 // If editable, flag for whether spell check is enabled or not. | 125 // If editable, flag for whether spell check is enabled or not. |
123 bool spellcheck_enabled; | 126 bool spellcheck_enabled; |
124 | 127 |
(...skipping 27 matching lines...) Expand all Loading... |
152 // Points representing the coordinates in the document space of the start and | 155 // Points representing the coordinates in the document space of the start and |
153 // end of the selection, if there is one. | 156 // end of the selection, if there is one. |
154 gfx::Point selection_start; | 157 gfx::Point selection_start; |
155 gfx::Point selection_end; | 158 gfx::Point selection_end; |
156 #endif | 159 #endif |
157 }; | 160 }; |
158 | 161 |
159 } // namespace content | 162 } // namespace content |
160 | 163 |
161 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 164 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
OLD | NEW |