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

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

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add server-side size limit tests Created 7 years, 11 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_result.h" 8 #include "chrome/common/spellcheck_result.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Passes some initialization params to the renderer's spellchecker. This can 29 // Passes some initialization params to the renderer's spellchecker. This can
30 // be called directly after startup or in (async) response to a 30 // be called directly after startup or in (async) response to a
31 // RequestDictionary ViewHost message. 31 // RequestDictionary ViewHost message.
32 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init, 32 IPC_MESSAGE_CONTROL4(SpellCheckMsg_Init,
33 IPC::PlatformFileForTransit /* bdict_file */, 33 IPC::PlatformFileForTransit /* bdict_file */,
34 std::vector<std::string> /* custom_dict_words */, 34 std::vector<std::string> /* custom_dict_words */,
35 std::string /* language */, 35 std::string /* language */,
36 bool /* auto spell correct */) 36 bool /* auto spell correct */)
37 37
38 // A word has been added to the custom dictionary; update the local custom 38 // Words have been added and removed in the custom dictionary; update the local
39 // word list. 39 // custom word list.
40 IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordAdded, 40 IPC_MESSAGE_CONTROL2(SpellCheckMsg_WordsAddedRemoved,
41 std::string /* word */) 41 std::vector<std::string> /* words_added */,
42 42 std::vector<std::string> /* words_removed */)
43 // A word has been removed from the custom dictionary; update the local custom
44 // word list.
45 IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordRemoved,
46 std::string /* word */)
47 43
48 // Toggle the auto spell correct functionality. 44 // Toggle the auto spell correct functionality.
49 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, 45 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect,
50 bool /* enable */) 46 bool /* enable */)
51 47
52 #if !defined(OS_MACOSX) 48 #if !defined(OS_MACOSX)
53 // Sends text-check results from the Spelling service when the service finishes 49 // Sends text-check results from the Spelling service when the service finishes
54 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. 50 // checking text received by a SpellCheckHostMsg_CallSpellingService message.
55 // If the service is not available, the 4th parameter should be false and 51 // If the service is not available, the 4th parameter should be false and the
56 // the 5th parameter should contain the requested sentence. 52 // 5th parameter should contain the requested sentence.
57 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService, 53 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService,
58 int /* request identifier given by WebKit */, 54 int /* request identifier given by WebKit */,
59 int /* offset */, 55 int /* offset */,
60 bool /* succeeded calling serivce */, 56 bool /* succeeded calling service */,
61 string16 /* sentence */, 57 string16 /* sentence */,
62 std::vector<SpellCheckResult>) 58 std::vector<SpellCheckResult>)
63 #endif 59 #endif
64 60
65 #if defined(OS_MACOSX) 61 #if defined(OS_MACOSX)
66 // This message tells the renderer to advance to the next misspelling. It is 62 // This message tells the renderer to advance to the next misspelling. It is
67 // sent when the user clicks the "Find Next" button on the spelling panel. 63 // sent when the user clicks the "Find Next" button on the spelling panel.
68 IPC_MESSAGE_ROUTED0(SpellCheckMsg_AdvanceToNextMisspelling) 64 IPC_MESSAGE_ROUTED0(SpellCheckMsg_AdvanceToNextMisspelling)
69 65
70 // Sends when NSSpellChecker finishes checking text received by a preceeding 66 // Sends when NSSpellChecker finishes checking text received by a preceding
71 // SpellCheckHostMsg_RequestTextCheck message. 67 // SpellCheckHostMsg_RequestTextCheck message.
72 IPC_MESSAGE_ROUTED2(SpellCheckMsg_RespondTextCheck, 68 IPC_MESSAGE_ROUTED2(SpellCheckMsg_RespondTextCheck,
73 int /* request identifier given by WebKit */, 69 int /* request identifier given by WebKit */,
74 std::vector<SpellCheckResult>) 70 std::vector<SpellCheckResult>)
75 71
76 IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel, 72 IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel,
77 bool) 73 bool)
78 #endif 74 #endif
79 75
80 // Messages sent from the renderer to the browser. 76 // Messages sent from the renderer to the browser.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 122
127 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck, 123 IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_RequestTextCheck,
128 int /* route_id for response */, 124 int /* route_id for response */,
129 int /* request identifier given by WebKit */, 125 int /* request identifier given by WebKit */,
130 string16 /* sentence */) 126 string16 /* sentence */)
131 127
132 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 128 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
133 bool /* enabled */, 129 bool /* enabled */,
134 bool /* checked */) 130 bool /* checked */)
135 #endif // OS_MACOSX 131 #endif // OS_MACOSX
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698