| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // A word has been added to the custom dictionary; update the local custom | 37 // A word has been added to the custom dictionary; update the local custom |
| 38 // word list. | 38 // word list. |
| 39 IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordAdded, | 39 IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordAdded, |
| 40 std::string /* word */) | 40 std::string /* word */) |
| 41 | 41 |
| 42 // Toggle the auto spell correct functionality. | 42 // Toggle the auto spell correct functionality. |
| 43 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, | 43 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, |
| 44 bool /* enable */) | 44 bool /* enable */) |
| 45 | 45 |
| 46 // Replace the selected misspelled range with the specified suggestion. | |
| 47 IPC_MESSAGE_ROUTED1(SpellCheckMsg_Replace, | |
| 48 string16) | |
| 49 | |
| 50 #if !defined(OS_MACOSX) | 46 #if !defined(OS_MACOSX) |
| 51 // Sends text-check results from the Spelling service when the service finishes | 47 // Sends text-check results from the Spelling service when the service finishes |
| 52 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. | 48 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. |
| 53 // If the service is not available, the 4th parameter should be false and | 49 // If the service is not available, the 4th parameter should be false and |
| 54 // the 5th parameter should contain the requested setence. | 50 // the 5th parameter should contain the requested setence. |
| 55 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService, | 51 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService, |
| 56 int /* request identifier given by WebKit */, | 52 int /* request identifier given by WebKit */, |
| 57 int /* offset */, | 53 int /* offset */, |
| 58 bool /* succeeded calling serivce */, | 54 bool /* succeeded calling serivce */, |
| 59 string16 /* sentence */, | 55 string16 /* sentence */, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, | 126 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, |
| 131 int /* route_id for response */, | 127 int /* route_id for response */, |
| 132 int /* request identifier given by WebKit */, | 128 int /* request identifier given by WebKit */, |
| 133 int /* document tag */, | 129 int /* document tag */, |
| 134 string16 /* sentence */) | 130 string16 /* sentence */) |
| 135 | 131 |
| 136 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 132 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
| 137 bool /* enabled */, | 133 bool /* enabled */, |
| 138 bool /* checked */) | 134 bool /* checked */) |
| 139 #endif // OS_MACOSX | 135 #endif // OS_MACOSX |
| OLD | NEW |