| 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 "components/spellcheck/common/spellcheck_bdict_language.h" | 10 #include "components/spellcheck/common/spellcheck_bdict_language.h" |
| 11 #include "components/spellcheck/common/spellcheck_result.h" | 11 #include "components/spellcheck/common/spellcheck_result.h" |
| 12 #include "components/spellcheck/spellcheck_build_features.h" | 12 #include "components/spellcheck/spellcheck_build_features.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 !BUILDFLAG(ENABLE_SPELLCHECK) | 16 #if !BUILDFLAG(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) |
| 23 | 23 |
| 24 IPC_STRUCT_TRAITS_BEGIN(SpellCheckResult) | 24 IPC_STRUCT_TRAITS_BEGIN(SpellCheckResult) |
| 25 IPC_STRUCT_TRAITS_MEMBER(decoration) | 25 IPC_STRUCT_TRAITS_MEMBER(decoration) |
| 26 IPC_STRUCT_TRAITS_MEMBER(location) | 26 IPC_STRUCT_TRAITS_MEMBER(location) |
| 27 IPC_STRUCT_TRAITS_MEMBER(length) | 27 IPC_STRUCT_TRAITS_MEMBER(length) |
| 28 IPC_STRUCT_TRAITS_MEMBER(replacement) | 28 IPC_STRUCT_TRAITS_MEMBER(replacements) |
| 29 IPC_STRUCT_TRAITS_END() | 29 IPC_STRUCT_TRAITS_END() |
| 30 | 30 |
| 31 IPC_STRUCT_TRAITS_BEGIN(SpellCheckBDictLanguage) | 31 IPC_STRUCT_TRAITS_BEGIN(SpellCheckBDictLanguage) |
| 32 IPC_STRUCT_TRAITS_MEMBER(file) | 32 IPC_STRUCT_TRAITS_MEMBER(file) |
| 33 IPC_STRUCT_TRAITS_MEMBER(language) | 33 IPC_STRUCT_TRAITS_MEMBER(language) |
| 34 IPC_STRUCT_TRAITS_END() | 34 IPC_STRUCT_TRAITS_END() |
| 35 | 35 |
| 36 // Messages sent from the browser to the renderer. | 36 // Messages sent from the browser to the renderer. |
| 37 | 37 |
| 38 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, bool) | 38 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, bool) |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 #if BUILDFLAG(HAS_SPELLCHECK_PANEL) | 125 #if BUILDFLAG(HAS_SPELLCHECK_PANEL) |
| 126 // Tells the browser to display or not display the SpellingPanel | 126 // Tells the browser to display or not display the SpellingPanel |
| 127 IPC_MESSAGE_ROUTED1(SpellCheckHostMsg_ShowSpellingPanel, | 127 IPC_MESSAGE_ROUTED1(SpellCheckHostMsg_ShowSpellingPanel, |
| 128 bool /* if true, then show it, otherwise hide it*/) | 128 bool /* if true, then show it, otherwise hide it*/) |
| 129 | 129 |
| 130 // Tells the browser to update the spelling panel with the given word. | 130 // Tells the browser to update the spelling panel with the given word. |
| 131 IPC_MESSAGE_ROUTED1(SpellCheckHostMsg_UpdateSpellingPanelWithMisspelledWord, | 131 IPC_MESSAGE_ROUTED1(SpellCheckHostMsg_UpdateSpellingPanelWithMisspelledWord, |
| 132 base::string16 /* the word to update the panel with */) | 132 base::string16 /* the word to update the panel with */) |
| 133 #endif | 133 #endif |
| OLD | NEW |