summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-15 20:18:04 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-15 20:18:04 +0000
commitbbbd545cc226d409d131afb806e1ae5df3e5aa73 (patch)
tree6c87d2afde518b04a7b19813c2ec360ba6afbf1f /chrome/common/render_messages.h
parentbdb1d32442597e46583a79c0af560e6cc9e57214 (diff)
downloadchromium_src-bbbd545cc226d409d131afb806e1ae5df3e5aa73.zip
chromium_src-bbbd545cc226d409d131afb806e1ae5df3e5aa73.tar.gz
chromium_src-bbbd545cc226d409d131afb806e1ae5df3e5aa73.tar.bz2
Add "Enable spell check for this field" menu option in sub context menu for context menu over text box, and deploy its functionality accordingly across the code. This patch also allows manual switch-on of spell check in single line text box fields.
Review URL: http://codereview.chromium.org/13731 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index b359e12..fa19f82 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -158,6 +158,9 @@ struct ViewHostMsg_ContextMenu_Params {
// and the misspelled_word is not empty.
std::vector<std::wstring> dictionary_suggestions;
+ // If editable, flag for whether spell check is enabled or not.
+ bool spellcheck_enabled;
+
// These flags indicate to the browser whether the renderer believes it is
// able to perform the corresponding action.
int edit_flags;
@@ -945,6 +948,7 @@ struct ParamTraits<ViewHostMsg_ContextMenu_Params> {
WriteParam(m, p.selection_text);
WriteParam(m, p.misspelled_word);
WriteParam(m, p.dictionary_suggestions);
+ WriteParam(m, p.spellcheck_enabled);
WriteParam(m, p.edit_flags);
WriteParam(m, p.security_info);
}
@@ -960,6 +964,7 @@ struct ParamTraits<ViewHostMsg_ContextMenu_Params> {
ReadParam(m, iter, &p->selection_text) &&
ReadParam(m, iter, &p->misspelled_word) &&
ReadParam(m, iter, &p->dictionary_suggestions) &&
+ ReadParam(m, iter, &p->spellcheck_enabled) &&
ReadParam(m, iter, &p->edit_flags) &&
ReadParam(m, iter, &p->security_info);
}