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

Unified Diff: chrome/common/render_messages_internal.h

Issue 357003: Move the spellchecker to the renderer.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rename Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/render_messages_internal.h
===================================================================
--- chrome/common/render_messages_internal.h (revision 31117)
+++ chrome/common/render_messages_internal.h (working copy)
@@ -829,6 +829,28 @@
IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed,
int /* socket_id */)
+#if defined(SPELLCHECKER_IN_RENDERER)
+ // SpellChecker messages.
+
+ // Passes some initialization params to the renderer's spellchecker. This can
+ // be called directly after startup or in (async) response to a
+ // RequestDictionary ViewHost message.
+ IPC_MESSAGE_CONTROL4(ViewMsg_SpellChecker_Init,
+ base::FileDescriptor /* bdict_file */,
+ std::vector<std::string> /* custom_dict_words */,
+ std::string /* language */,
+ bool /* auto spell correct */)
+
+ // A word has been added to the custom dictionary; update the local custom
+ // word list.
+ IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_WordAdded,
+ std::string /* word */)
+
+ // Toggle the auto spell correct functionality.
+ IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect,
+ bool /* enable */)
+#endif
+
IPC_END_MESSAGES(View)
@@ -1980,4 +2002,12 @@
std::string /* challenge string */,
GURL /* URL of requestor */,
std::string /* signed public key and challenge */)
+
+#if defined(SPELLCHECKER_IN_RENDERER)
+ // The renderer has tried to spell check a word, but couldn't because no
+ // dictionary was available to load. Request that the browser find an
+ // appropriate dictionary and return it.
+ IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary)
+#endif
+
IPC_END_MESSAGES(ViewHost)

Powered by Google App Engine
This is Rietveld 408576698