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

Unified Diff: chrome/browser/tab_contents/spellchecker_submenu_observer.h

Issue 8823009: Remove Hunspell on OS X - step 1 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix review comments Created 9 years 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/spellchecker_submenu_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spellchecker_submenu_observer.h
diff --git a/chrome/browser/tab_contents/spellchecker_submenu_observer.h b/chrome/browser/tab_contents/spellchecker_submenu_observer.h
index 9837d682d84070118a9f6ee8ce775f071f55b71d..97248af2c73ba41451984a769c7c127bcd172a9e 100644
--- a/chrome/browser/tab_contents/spellchecker_submenu_observer.h
+++ b/chrome/browser/tab_contents/spellchecker_submenu_observer.h
@@ -41,6 +41,13 @@ class SpellCheckerSubMenuObserver : public RenderViewContextMenuObserver {
// submenu and add it to the parent menu.
ui::SimpleMenuModel submenu_model_;
+#if defined(OS_MACOSX)
+ // On OS X we use the Cocoa spellchecker and try to match the native context
+ // menu.
+ bool check_spelling_while_typing_;
+#else
+ // Hunspell spelling submenu.
+
// Whether spellchecking is enabled in the focused element or not.
bool spellcheck_enabled_;
@@ -51,6 +58,7 @@ class SpellCheckerSubMenuObserver : public RenderViewContextMenuObserver {
int language_group_;
int language_selected_;
std::vector<std::string> languages_;
+#endif // !OS_MACOSX
DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/spellchecker_submenu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698