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

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

Issue 10572007: Revert 142671 - Use WebFrame::replaceMisspelledRange() to replace a misspelled range with text. (Closed) Base URL: svn://svn.chromium.org/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
50 #if !defined(OS_MACOSX) 46 #if !defined(OS_MACOSX)
51 // 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
52 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. 48 // checking text reveived by a SpellCheckHostMsg_CallSpellingService message.
53 // If the service is not available, the 4th parameter should be false and 49 // If the service is not available, the 4th parameter should be false and
54 // the 5th parameter should contain the requested setence. 50 // the 5th parameter should contain the requested setence.
55 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService, 51 IPC_MESSAGE_ROUTED5(SpellCheckMsg_RespondSpellingService,
56 int /* request identifier given by WebKit */, 52 int /* request identifier given by WebKit */,
57 int /* offset */, 53 int /* offset */,
58 bool /* succeeded calling serivce */, 54 bool /* succeeded calling serivce */,
59 string16 /* sentence */, 55 string16 /* sentence */,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, 126 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck,
131 int /* route_id for response */, 127 int /* route_id for response */,
132 int /* request identifier given by WebKit */, 128 int /* request identifier given by WebKit */,
133 int /* document tag */, 129 int /* document tag */,
134 string16 /* sentence */) 130 string16 /* sentence */)
135 131
136 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 132 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
137 bool /* enabled */, 133 bool /* enabled */,
138 bool /* checked */) 134 bool /* checked */)
139 #endif // OS_MACOSX 135 #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