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

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

Issue 9169082: Asynchronous spellchecking on Win and Linux (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Build fix Created 8 years, 8 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 | Annotate | Revision Log
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 28 matching lines...) Expand all
39 IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordAdded, 39 IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordAdded,
40 std::string /* word */) 40 std::string /* word */)
41 41
42 // Toggle the auto spell correct functionality. 42 // Toggle the auto spell correct functionality.
43 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, 43 IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect,
44 bool /* enable */) 44 bool /* enable */)
45 45
46 #if !defined(OS_MACOSX) 46 #if !defined(OS_MACOSX)
47 // Sends text-check results from the Spelling service when the service finishes 47 // Sends text-check results from the Spelling service when the service finishes
48 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. 48 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message.
49 IPC_MESSAGE_ROUTED3(SpellCheckMsg_RespondSpellingService, 49 // If the service is not available, the 4th parameter should be false and
50 int /* request identifier given by WebKit */, 50 // the 5th parameter should contain the requested setence.
51 int /* offset */, 51 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService,
52 int /* request identifier given by WebKit */,
53 int /* offset */,
54 bool /* succeeded calling serivce */,
55 string16 /* sentence */,
52 std::vector<SpellCheckResult>) 56 std::vector<SpellCheckResult>)
53 #endif 57 #endif
54 58
55 #if defined(OS_MACOSX) 59 #if defined(OS_MACOSX)
56 // This message tells the renderer to advance to the next misspelling. It is 60 // This message tells the renderer to advance to the next misspelling. It is
57 // sent when the user clicks the "Find Next" button on the spelling panel. 61 // sent when the user clicks the "Find Next" button on the spelling panel.
58 IPC_MESSAGE_ROUTED0(SpellCheckMsg_AdvanceToNextMisspelling) 62 IPC_MESSAGE_ROUTED0(SpellCheckMsg_AdvanceToNextMisspelling)
59 63
60 // Sends when NSSpellChecker finishes checking text received by a preceeding 64 // Sends when NSSpellChecker finishes checking text received by a preceeding
61 // SpellCheckHostMsg_RequestTextCheck message. 65 // SpellCheckHostMsg_RequestTextCheck message.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, 126 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck,
123 int /* route_id for response */, 127 int /* route_id for response */,
124 int /* request identifier given by WebKit */, 128 int /* request identifier given by WebKit */,
125 int /* document tag */, 129 int /* document tag */,
126 string16 /* sentence */) 130 string16 /* sentence */)
127 131
128 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 132 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
129 bool /* enabled */, 133 bool /* enabled */,
130 bool /* checked */) 134 bool /* checked */)
131 #endif // OS_MACOSX 135 #endif // OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_message_filter.cc ('k') | chrome/renderer/spellchecker/spellcheck.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698