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

Unified Diff: chrome/browser/tab_contents/spelling_menu_observer.cc

Issue 12038037: Replace the misspelled range within a selection to correct spelling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spelling_menu_observer.cc
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.cc b/chrome/browser/tab_contents/spelling_menu_observer.cc
index 4481acadfef7b2a696453e4309147294a9975406..a7022b1aefb51f2be45fdefa01a54b8ef978b501 100644
--- a/chrome/browser/tab_contents/spelling_menu_observer.cc
+++ b/chrome/browser/tab_contents/spelling_menu_observer.cc
@@ -216,7 +216,7 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
if (command_id >= IDC_SPELLCHECK_SUGGESTION_0 &&
command_id <= IDC_SPELLCHECK_SUGGESTION_LAST) {
- proxy_->GetRenderViewHost()->Replace(
+ proxy_->GetRenderViewHost()->ReplaceMisspelling(
suggestions_[command_id - IDC_SPELLCHECK_SUGGESTION_0]);
// GetSpellCheckHost() can return null when the suggested word is
// provided by Web SpellCheck API.
@@ -234,7 +234,7 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
// the misspelled word with the suggestion and add it to our custom-word
// dictionary so this word is not marked as misspelled any longer.
if (command_id == IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION) {
- proxy_->GetRenderViewHost()->Replace(result_);
+ proxy_->GetRenderViewHost()->ReplaceMisspelling(result_);
misspelled_word_ = result_;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698