Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/common/spellcheck_messages.h

Issue 15940004: Add HasWord(string) method to SpellcheckCustomDictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clarified message direction (browser-to-renderer) in spellcheck_messages.h Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 IPC_STRUCT_TRAITS_BEGIN(SpellCheckMarker) 26 IPC_STRUCT_TRAITS_BEGIN(SpellCheckMarker)
27 IPC_STRUCT_TRAITS_MEMBER(hash) 27 IPC_STRUCT_TRAITS_MEMBER(hash)
28 IPC_STRUCT_TRAITS_MEMBER(offset) 28 IPC_STRUCT_TRAITS_MEMBER(offset)
29 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
30 30
31 // Messages sent from the browser to the renderer. 31 // Messages sent from the browser to the renderer.
32 32
33 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck, 33 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableSpellCheck,
34 bool) 34 bool)
35 35
36 // Passes some initialization params to the renderer's spellchecker. This can 36 // Passes some initialization params from the browser to the renderer's
37 // be called directly after startup or in (async) response to a 37 // spellchecker. This can be called directly after startup or in (async)
38 // RequestDictionary ViewHost message. 38 // response to a RequestDictionary ViewHost message.
39 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init, 39 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init,
40 IPC::PlatformFileForTransit /* bdict_file */, 40 IPC::PlatformFileForTransit /* bdict_file */,
41 std::vector<std::string> /* custom_dict_words */, 41 std::set<std::string> /* custom_dict_words */,
42 std::string /* language */, 42 std::string /* language */,
43 bool /* auto spell correct */) 43 bool /* auto spell correct */)
44 44
45 // Words have been added and removed in the custom dictionary; update the local 45 // Words have been added and removed in the custom dictionary; update the local
46 // custom word list. 46 // custom word list.
47 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged, 47 IPC_MESSAGE_CONTROL2(SpellCheckMsg_CustomDictionaryChanged,
48 std::vector<std::string> /* words_added */, 48 std::vector<std::string> /* words_added */,
49 std::vector<std::string> /* words_removed */) 49 std::vector<std::string> /* words_removed */)
50 50
51 // Toggle the auto spell correct functionality. 51 // Toggle the auto spell correct functionality.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, 133 IPC_MESSAGE_CONTROL3(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 137
138 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 138 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
139 bool /* enabled */, 139 bool /* enabled */,
140 bool /* checked */) 140 bool /* checked */)
141 #endif // OS_MACOSX 141 #endif // OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/common/spellcheck_common.h ('k') | chrome/renderer/spellchecker/custom_dictionary_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698