| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // TODO(groby): This needs to originate from SpellcheckProvider. | 123 // TODO(groby): This needs to originate from SpellcheckProvider. |
| 124 IPC_SYNC_MESSAGE_CONTROL2_1(SpellCheckHostMsg_CheckSpelling, | 124 IPC_SYNC_MESSAGE_CONTROL2_1(SpellCheckHostMsg_CheckSpelling, |
| 125 string16 /* word */, | 125 string16 /* word */, |
| 126 int /* route_id */, | 126 int /* route_id */, |
| 127 bool /* correct */) | 127 bool /* correct */) |
| 128 | 128 |
| 129 IPC_SYNC_MESSAGE_CONTROL1_1(SpellCheckHostMsg_FillSuggestionList, | 129 IPC_SYNC_MESSAGE_CONTROL1_1(SpellCheckHostMsg_FillSuggestionList, |
| 130 string16 /* word */, | 130 string16 /* word */, |
| 131 std::vector<string16> /* suggestions */) | 131 std::vector<string16> /* suggestions */) |
| 132 | 132 |
| 133 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, | 133 IPC_MESSAGE_CONTROL4(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 std::vector<SpellCheckMarker> /* markers */) |
| 137 | 138 |
| 138 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 139 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
| 139 bool /* enabled */, | 140 bool /* enabled */, |
| 140 bool /* checked */) | 141 bool /* checked */) |
| 141 #endif // OS_MACOSX | 142 #endif // OS_MACOSX |
| OLD | NEW |