| 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_marker.h" | 8 #include "chrome/common/spellcheck_marker.h" |
| 9 #include "chrome/common/spellcheck_result.h" | 9 #include "chrome/common/spellcheck_result.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 IPC_STRUCT_TRAITS_BEGIN(SpellCheckMarker) | 26 IPC_STRUCT_TRAITS_BEGIN(SpellCheckMarker) |
| 27 IPC_STRUCT_TRAITS_MEMBER(hash) | 27 IPC_STRUCT_TRAITS_MEMBER(hash) |
| 28 IPC_STRUCT_TRAITS_MEMBER(offset) | 28 IPC_STRUCT_TRAITS_MEMBER(offset) |
| 29 IPC_STRUCT_TRAITS_END() | 29 IPC_STRUCT_TRAITS_END() |
| 30 | 30 |
| 31 // Messages sent from the browser to the renderer. | 31 // Messages sent from the browser to the renderer. |
| 32 | 32 |
| 33 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, | 33 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, |
| 34 bool) | 34 bool) |
| 35 | 35 |
| 36 // Passes some initialization params to the renderer's spellchecker. This can | 36 // Passes some initialization params from the browser to the renderer's |
| 37 // be called directly after startup or in (async) response to a | 37 // spellchecker. This can be called directly after startup or in (async) |
| 38 // RequestDictionary ViewHost message. | 38 // response to a RequestDictionary ViewHost message. |
| 39 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init, | 39 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init, |
| 40 IPC::PlatformFileForTransit /* bdict_file */, | 40 IPC::PlatformFileForTransit /* bdict_file */, |
| 41 std::vector<std::string> /* custom_dict_words */, | 41 std::set<std::string> /* custom_dict_words */, |
| 42 std::string /* language */, | 42 std::string /* language */, |
| 43 bool /* auto spell correct */) | 43 bool /* auto spell correct */) |
| 44 | 44 |
| 45 // Words have been added and removed in the custom dictionary; update the local | 45 // Words have been added and removed in the custom dictionary; update the local |
| 46 // custom word list. | 46 // custom word list. |
| 47 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, | 47 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, |
| 48 std::vector<std::string> /* words_added */, | 48 std::vector<std::string> /* words_added */, |
| 49 std::vector<std::string> /* words_removed */) | 49 std::vector<std::string> /* words_removed */) |
| 50 | 50 |
| 51 // Toggle the auto spell correct functionality. | 51 // Toggle the auto spell correct functionality. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, | 133 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, |
| 134 int /* route_id for response */, | 134 int /* route_id for response */, |
| 135 int /* request identifier given by WebKit */, | 135 int /* request identifier given by WebKit */, |
| 136 string16 /* sentence */) | 136 string16 /* sentence */) |
| 137 | 137 |
| 138 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 138 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
| 139 bool /* enabled */, | 139 bool /* enabled */, |
| 140 bool /* checked */) | 140 bool /* checked */) |
| 141 #endif // OS_MACOSX | 141 #endif // OS_MACOSX |
| OLD | NEW |