diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 05:22:20 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 05:22:20 +0000 |
commit | 2a6bad165b4ce354d3a49889266aed2c5cfca8c4 (patch) | |
tree | 91fe10b49d74de31dad8558ac28eeea644f99926 /chrome/common/spellcheck_messages.h | |
parent | 4f932f76925b011fcb94e9c782bf4d08c36dd2a9 (diff) | |
download | chromium_src-2a6bad165b4ce354d3a49889266aed2c5cfca8c4.zip chromium_src-2a6bad165b4ce354d3a49889266aed2c5cfca8c4.tar.gz chromium_src-2a6bad165b4ce354d3a49889266aed2c5cfca8c4.tar.bz2 |
Use WebFrame::replaceMisspelledRange() to replace a misspelled range with text.
If a page has a selection, RenderView::OnReplace() replaces the selection with the given text. To prevent this problem, this change uses a new WebKit API WebFrame::replaceMisspelledRange() that replaces only a misspelled word with the given text.
BUG=132941
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10536190
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/spellcheck_messages.h')
-rw-r--r-- | chrome/common/spellcheck_messages.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/spellcheck_messages.h b/chrome/common/spellcheck_messages.h index 300838f..5f0f4a6 100644 --- a/chrome/common/spellcheck_messages.h +++ b/chrome/common/spellcheck_messages.h @@ -43,6 +43,10 @@ IPC_MESSAGE_CONTROL1(SpellCheckMsg_WordAdded, IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect, bool /* enable */) +// Replace the selected misspelled range with the specified suggestion. +IPC_MESSAGE_ROUTED1(SpellCheckMsg_Replace, + string16) + #if !defined(OS_MACOSX) // Sends text-check results from the Spelling service when the service finishes // checking text reveived by a SpellCheckHostMsg_CallSpellingService message. |