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 <stdint.h> |
| 9 |
8 #include "chrome/common/spellcheck_bdict_language.h" | 10 #include "chrome/common/spellcheck_bdict_language.h" |
9 #include "chrome/common/spellcheck_marker.h" | 11 #include "chrome/common/spellcheck_marker.h" |
10 #include "chrome/common/spellcheck_result.h" | 12 #include "chrome/common/spellcheck_result.h" |
11 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
12 #include "ipc/ipc_platform_file.h" | 14 #include "ipc/ipc_platform_file.h" |
13 | 15 |
14 #if !defined(ENABLE_SPELLCHECK) | 16 #if !defined(ENABLE_SPELLCHECK) |
15 #error "Spellcheck should be enabled" | 17 #error "Spellcheck should be enabled" |
16 #endif | 18 #endif |
17 | 19 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 std::set<std::string> /* words_added */, | 57 std::set<std::string> /* words_added */, |
56 std::set<std::string> /* words_removed */) | 58 std::set<std::string> /* words_removed */) |
57 | 59 |
58 // Request a list of all document markers in the renderer for spelling service | 60 // Request a list of all document markers in the renderer for spelling service |
59 // feedback. | 61 // feedback. |
60 IPC_MESSAGE_CONTROL0(SpellCheckMsg_RequestDocumentMarkers) | 62 IPC_MESSAGE_CONTROL0(SpellCheckMsg_RequestDocumentMarkers) |
61 | 63 |
62 // Send a list of document markers in the renderer to the spelling service | 64 // Send a list of document markers in the renderer to the spelling service |
63 // feedback sender. | 65 // feedback sender. |
64 IPC_MESSAGE_CONTROL1(SpellCheckHostMsg_RespondDocumentMarkers, | 66 IPC_MESSAGE_CONTROL1(SpellCheckHostMsg_RespondDocumentMarkers, |
65 std::vector<uint32> /* document marker identifiers */) | 67 std::vector<uint32_t> /* document marker identifiers */) |
66 | 68 |
67 #if !defined(USE_BROWSER_SPELLCHECKER) | 69 #if !defined(USE_BROWSER_SPELLCHECKER) |
68 // Sends text-check results from the Spelling service when the service finishes | 70 // Sends text-check results from the Spelling service when the service finishes |
69 // checking text received by a SpellCheckHostMsg_CallSpellingService message. | 71 // checking text received by a SpellCheckHostMsg_CallSpellingService message. |
70 // If the service is not available, the 4th parameter should be false and the | 72 // If the service is not available, the 4th parameter should be false and the |
71 // 5th parameter should contain the requested sentence. | 73 // 5th parameter should contain the requested sentence. |
72 IPC_MESSAGE_ROUTED4(SpellCheckMsg_RespondSpellingService, | 74 IPC_MESSAGE_ROUTED4(SpellCheckMsg_RespondSpellingService, |
73 int /* request identifier given by WebKit */, | 75 int /* request identifier given by WebKit */, |
74 bool /* succeeded calling service */, | 76 bool /* succeeded calling service */, |
75 base::string16 /* sentence */, | 77 base::string16 /* sentence */, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, | 139 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, |
138 int /* route_id for response */, | 140 int /* route_id for response */, |
139 int /* request identifier given by WebKit */, | 141 int /* request identifier given by WebKit */, |
140 base::string16 /* sentence */, | 142 base::string16 /* sentence */, |
141 std::vector<SpellCheckMarker> /* markers */) | 143 std::vector<SpellCheckMarker> /* markers */) |
142 | 144 |
143 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 145 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
144 bool /* enabled */, | 146 bool /* enabled */, |
145 bool /* checked */) | 147 bool /* checked */) |
146 #endif // USE_BROWSER_SPELLCHECKER | 148 #endif // USE_BROWSER_SPELLCHECKER |
OLD | NEW |