| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Words have been added and removed in the custom dictionary; update the local | 48 // Words have been added and removed in the custom dictionary; update the local |
| 49 // custom word list. | 49 // custom word list. |
| 50 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, | 50 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, |
| 51 std::vector<std::string> /* words_added */, | 51 std::vector<std::string> /* words_added */, |
| 52 std::vector<std::string> /* words_removed */) | 52 std::vector<std::string> /* words_removed */) |
| 53 | 53 |
| 54 // Toggle the auto spell correct functionality. | 54 // Toggle the auto spell correct functionality. |
| 55 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, | 55 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, |
| 56 bool /* enable */) | 56 bool /* enable */) |
| 57 | 57 |
| 58 // Request a list of all document markers in the renderer for spelling service |
| 59 // feedback. |
| 60 IPC_MESSAGE_CONTROL0(SpellCheckMsg_RequestDocumentMarkers) |
| 61 |
| 62 // Send a list of document markers in the renderer to the spelling service |
| 63 // feedback sender. |
| 64 IPC_MESSAGE_CONTROL1(SpellCheckHostMsg_RespondDocumentMarkers, |
| 65 std::vector<uint32> /* document marker identifiers */) |
| 66 |
| 58 #if !defined(OS_MACOSX) | 67 #if !defined(OS_MACOSX) |
| 59 // Sends text-check results from the Spelling service when the service finishes | 68 // Sends text-check results from the Spelling service when the service finishes |
| 60 // checking text received by a SpellCheckHostMsg_CallSpellingService message. | 69 // checking text received by a SpellCheckHostMsg_CallSpellingService message. |
| 61 // If the service is not available, the 4th parameter should be false and the | 70 // If the service is not available, the 4th parameter should be false and the |
| 62 // 5th parameter should contain the requested sentence. | 71 // 5th parameter should contain the requested sentence. |
| 63 IPC_MESSAGE_ROUTED4(SpellCheckMsg_RespondSpellingService, | 72 IPC_MESSAGE_ROUTED4(SpellCheckMsg_RespondSpellingService, |
| 64 int /* request identifier given by WebKit */, | 73 int /* request identifier given by WebKit */, |
| 65 bool /* succeeded calling service */, | 74 bool /* succeeded calling service */, |
| 66 base::string16 /* sentence */, | 75 base::string16 /* sentence */, |
| 67 std::vector<SpellCheckResult>) | 76 std::vector<SpellCheckResult>) |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, | 136 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, |
| 128 int /* route_id for response */, | 137 int /* route_id for response */, |
| 129 int /* request identifier given by WebKit */, | 138 int /* request identifier given by WebKit */, |
| 130 base::string16 /* sentence */, | 139 base::string16 /* sentence */, |
| 131 std::vector<SpellCheckMarker> /* markers */) | 140 std::vector<SpellCheckMarker> /* markers */) |
| 132 | 141 |
| 133 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 142 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
| 134 bool /* enabled */, | 143 bool /* enabled */, |
| 135 bool /* checked */) | 144 bool /* checked */) |
| 136 #endif // OS_MACOSX | 145 #endif // OS_MACOSX |
| OLD | NEW |