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> | 8 #include <stdint.h> |
9 | 9 |
10 #include "chrome/common/spellcheck_bdict_language.h" | 10 #include "components/spellcheck/common/spellcheck_bdict_language.h" |
11 #include "chrome/common/spellcheck_marker.h" | 11 #include "components/spellcheck/common/spellcheck_marker.h" |
12 #include "chrome/common/spellcheck_result.h" | 12 #include "components/spellcheck/common/spellcheck_result.h" |
13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
14 #include "ipc/ipc_platform_file.h" | 14 #include "ipc/ipc_platform_file.h" |
15 | 15 |
16 #if !defined(ENABLE_SPELLCHECK) | 16 #if !defined(ENABLE_SPELLCHECK) |
17 #error "Spellcheck should be enabled" | 17 #error "Spellcheck should be enabled" |
18 #endif | 18 #endif |
19 | 19 |
20 #define IPC_MESSAGE_START SpellCheckMsgStart | 20 #define IPC_MESSAGE_START SpellCheckMsgStart |
21 | 21 |
22 IPC_ENUM_TRAITS(SpellCheckResult::Decoration) | 22 IPC_ENUM_TRAITS(SpellCheckResult::Decoration) |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, | 139 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, |
140 int /* route_id for response */, | 140 int /* route_id for response */, |
141 int /* request identifier given by WebKit */, | 141 int /* request identifier given by WebKit */, |
142 base::string16 /* sentence */, | 142 base::string16 /* sentence */, |
143 std::vector<SpellCheckMarker> /* markers */) | 143 std::vector<SpellCheckMarker> /* markers */) |
144 | 144 |
145 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, | 145 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, |
146 bool /* enabled */, | 146 bool /* enabled */, |
147 bool /* checked */) | 147 bool /* checked */) |
148 #endif // USE_BROWSER_SPELLCHECKER | 148 #endif // USE_BROWSER_SPELLCHECKER |
OLD | NEW |