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

Unified Diff: chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc

Issue 1213133004: Add the 'Ask Google' option to the spelling submenu on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc
diff --git a/chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc b/chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc
index a90bc44dbb2ef0cf34906213b6b3ad380373912f..44737f2f8465c503c14c7da348a85e2382c0e18b 100644
--- a/chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc
+++ b/chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc
@@ -61,6 +61,13 @@ void SpellCheckerSubMenuObserver::InitMenu(
l10n_util::GetStringUTF16(
IDS_CONTENT_CONTEXT_CHECK_SPELLING_WHILE_TYPING));
+ // Add a check item "Ask Google for spelling suggestions" item. (This class
+ // does not handle this item because the SpellingMenuObserver class handles it
+ // on behalf of this class.)
+ submenu_model_.AddCheckItem(
+ IDC_CONTENT_CONTEXT_SPELLING_TOGGLE,
+ l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_SPELLING_ASK_GOOGLE));
+
proxy_->AddSubMenu(
IDC_SPELLCHECK_MENU,
l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_SPELLCHECK_MENU),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698