Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: content/public/common/context_menu_params.h

Issue 2177023002: Remove spellchecker feedback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698