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

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

Issue 10536190: Use WebFrame::replaceMisspelledRange() to replace a misspelled range with text. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | 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 25 matching lines...) Expand all
36 36
37 // A word has been added to the custom dictionary; update the local custom 37 // A word has been added to the custom dictionary; update the local custom
38 // word list. 38 // word list.
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 // Replace the selected misspelled range with the specified suggestion.
47 IPC_MESSAGE_ROUTED1(SpellCheckMsg_Replace,
48 string16)
49
46 #if !defined(OS_MACOSX) 50 #if !defined(OS_MACOSX)
47 // Sends text-check results from the Spelling service when the service finishes 51 // Sends text-check results from the Spelling service when the service finishes
48 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. 52 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message.
49 // If the service is not available, the 4th parameter should be false and 53 // If the service is not available, the 4th parameter should be false and
50 // the 5th parameter should contain the requested setence. 54 // the 5th parameter should contain the requested setence.
51 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService, 55 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService,
52 int /* request identifier given by WebKit */, 56 int /* request identifier given by WebKit */,
53 int /* offset */, 57 int /* offset */,
54 bool /* succeeded calling serivce */, 58 bool /* succeeded calling serivce */,
55 string16 /* sentence */, 59 string16 /* sentence */,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, 130 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck,
127 int /* route_id for response */, 131 int /* route_id for response */,
128 int /* request identifier given by WebKit */, 132 int /* request identifier given by WebKit */,
129 int /* document tag */, 133 int /* document tag */,
130 string16 /* sentence */) 134 string16 /* sentence */)
131 135
132 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 136 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
133 bool /* enabled */, 137 bool /* enabled */,
134 bool /* checked */) 138 bool /* checked */)
135 #endif // OS_MACOSX 139 #endif // OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/spelling_menu_observer.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698