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

Unified Diff: chrome/renderer/spellchecker/spellcheck.h

Issue 1275813002: Implemented typo recognition in Chrome for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@4_remove_mac_redundancies
Patch Set: Created 5 years, 4 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
Index: chrome/renderer/spellchecker/spellcheck.h
diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h
index 1977faef511891c8088a7d7a59d2c8d75746e4e5..714d4b4bb083a557c2a03a30ad108a9bbeae56dd 100644
--- a/chrome/renderer/spellchecker/spellcheck.h
+++ b/chrome/renderer/spellchecker/spellcheck.h
@@ -52,13 +52,12 @@ class SpellCheck : public content::RenderProcessObserver,
void AddSpellcheckLanguage(base::File file, const std::string& language);
- // If there are no dictionary files, then this requests them from the browser
+ // If there is no dictionary file, then this requests one from the browser
// and does not block. In this case it returns true.
- // If there are dictionary files, but their Hunspell has not been loaded, then
- // this loads their Hunspell.
- // If each dictionary file's Hunspell is already loaded, this does nothing. In
- // both the latter cases it returns false, meaning that it is OK to continue
- // spellchecking.
+ // If there is a dictionary file, but Hunspell has not been loaded, then
+ // this loads Hunspell.
+ // If Hunspell is already loaded, this does nothing. In both the latter cases
+ // it returns false, meaning that it is OK to continue spellchecking.
bool InitializeIfNeeded();
// SpellCheck a word.
@@ -95,7 +94,7 @@ class SpellCheck : public content::RenderProcessObserver,
// Requests to spellcheck the specified text in the background. This function
// posts a background task and calls SpellCheckParagraph() in the task.
-#if !defined (USE_BROWSER_SPELLCHECKER)
+#if !defined (OS_MACOSX)
void RequestTextChecking(const base::string16& text,
blink::WebTextCheckingCompletion* completion);
#endif
@@ -132,7 +131,7 @@ class SpellCheck : public content::RenderProcessObserver,
void OnEnableSpellCheck(bool enable);
void OnRequestDocumentMarkers();
-#if !defined (USE_BROWSER_SPELLCHECKER)
+#if !defined (OS_MACOSX)
// Posts delayed spellcheck task and clear it if any.
// Takes ownership of |request|.
void PostDelayedSpellCheckTask(SpellcheckRequest* request);
« chrome/browser/spellchecker/spellcheck_platform_android.cc ('K') | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698