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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 // |amount_sent| bytes of data requested by 822 // |amount_sent| bytes of data requested by
823 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream. 823 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream.
824 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData, 824 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData,
825 int /* socket_id */, 825 int /* socket_id */,
826 int /* amount_sent */) 826 int /* amount_sent */)
827 827
828 // The Socket Stream is closed. 828 // The Socket Stream is closed.
829 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed, 829 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed,
830 int /* socket_id */) 830 int /* socket_id */)
831 831
832 #if defined(SPELLCHECKER_IN_RENDERER)
833 // SpellChecker messages.
834
835 // Passes some initialization params to the renderer's spellchecker. This can
836 // be called directly after startup or in (async) response to a
837 // RequestDictionary ViewHost message.
838 IPC_MESSAGE_CONTROL4(ViewMsg_SpellChecker_Init,
839 base::FileDescriptor /* bdict_file */,
840 std::vector<std::string> /* custom_dict_words */,
841 std::string /* language */,
842 bool /* auto spell correct */)
843
844 // A word has been added to the custom dictionary; update the local custom
845 // word list.
846 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_WordAdded,
847 std::string /* word */)
848
849 // Toggle the auto spell correct functionality.
850 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect,
851 bool /* enable */)
852 #endif
853
832 IPC_END_MESSAGES(View) 854 IPC_END_MESSAGES(View)
833 855
834 856
835 //----------------------------------------------------------------------------- 857 //-----------------------------------------------------------------------------
836 // TabContents messages 858 // TabContents messages
837 // These are messages sent from the renderer to the browser process. 859 // These are messages sent from the renderer to the browser process.
838 860
839 IPC_BEGIN_MESSAGES(ViewHost) 861 IPC_BEGIN_MESSAGES(ViewHost)
840 // Sent by the renderer when it is creating a new window. The browser creates 862 // Sent by the renderer when it is creating a new window. The browser creates
841 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 863 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 // cryptographic operation. 1995 // cryptographic operation.
1974 1996
1975 // Asks the browser process to generate a keypair for grabbing a client 1997 // Asks the browser process to generate a keypair for grabbing a client
1976 // certificate from a CA (<keygen> tag), and returns the signed public 1998 // certificate from a CA (<keygen> tag), and returns the signed public
1977 // key and challenge string. 1999 // key and challenge string.
1978 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, 2000 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen,
1979 uint32 /* key size index */, 2001 uint32 /* key size index */,
1980 std::string /* challenge string */, 2002 std::string /* challenge string */,
1981 GURL /* URL of requestor */, 2003 GURL /* URL of requestor */,
1982 std::string /* signed public key and challenge */) 2004 std::string /* signed public key and challenge */)
2005
2006 #if defined(SPELLCHECKER_IN_RENDERER)
2007 // The renderer has tried to spell check a word, but couldn't because no
2008 // dictionary was available to load. Request that the browser find an
2009 // appropriate dictionary and return it.
2010 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary)
2011 #endif
2012
1983 IPC_END_MESSAGES(ViewHost) 2013 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698