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 // IPC messages for spellcheck. | 5 // IPC messages for spellcheck. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "chrome/common/spellcheck_result.h" | 8 #include "chrome/common/spellcheck_result.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "ipc/ipc_platform_file.h" | 10 #include "ipc/ipc_platform_file.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Messages sent from the browser to the renderer. | 24 // Messages sent from the browser to the renderer. |
25 | 25 |
26 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, | 26 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, |
27 bool) | 27 bool) |
28 | 28 |
29 // Passes some initialization params to the renderer's spellchecker. This can | 29 // Passes some initialization params to the renderer's spellchecker. This can |
30 // be called directly after startup or in (async) response to a | 30 // be called directly after startup or in (async) response to a |
31 // RequestDictionary ViewHost message. | 31 // RequestDictionary ViewHost message. |
32 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init, | 32 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init, |
33 IPC::PlatformFileForTransit /* bdict_file */, | 33 IPC::PlatformFileForTransit /* bdict_file */, |
34 std::vector<std::string> /* custom_dict_words */, | 34 std::set<std::string> /* custom_dict_words */, |
35 std::string /* language */, | 35 std::string /* language */, |
36 bool /* auto spell correct */) | 36 bool /* auto spell correct */) |
37 | 37 |
38 // Words have been added and removed in the custom dictionary; update the local | 38 // Words have been added and removed in the custom dictionary; update the local |
39 // custom word list. | 39 // custom word list. |
40 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, | 40 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, |
41 std::vector<std::string> /* words_added */, | 41 std::vector<std::string> /* words_added */, |
42 std::vector<std::string> /* words_removed */) | 42 std::vector<std::string> /* words_removed */) |
43 | 43 |
44 // Toggle the auto spell correct functionality. | 44 // Toggle the auto spell correct functionality. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, | 125 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, |
126 int /* route_id for response */, | 126 int /* route_id for response */, |
127 int /* request identifier given by WebKit */, | 127 int /* request identifier given by WebKit */, |
128 string16 /* sentence */) | 128 string16 /* sentence */) |
129 | 129 |
130 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 130 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
131 bool /* enabled */, | 131 bool /* enabled */, |
132 bool /* checked */) | 132 bool /* checked */) |
133 #endif // OS_MACOSX | 133 #endif // OS_MACOSX |
OLD | NEW |