diff options
author | dylanking <dylanking@google.com> | 2015-08-06 19:27:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-07 02:27:45 +0000 |
commit | 9240727ec7f769727e99cff42539976f3c6c1f43 (patch) | |
tree | 9f908ca40b30f65b53a6da2198b87649b5e20eec | |
parent | b2cf30d05d2c2b2b0ef70031c797b8ef99153c17 (diff) | |
download | chromium_src-9240727ec7f769727e99cff42539976f3c6c1f43.zip chromium_src-9240727ec7f769727e99cff42539976f3c6c1f43.tar.gz chromium_src-9240727ec7f769727e99cff42539976f3c6c1f43.tar.bz2 |
Removed and replaced outdated mac-specific files and references
that weren't caught in previous patches.
BUG=415302
Review URL: https://codereview.chromium.org/1227553002
Cr-Commit-Position: refs/heads/master@{#342269}
-rw-r--r-- | chrome/browser/spellchecker/spellcheck_message_filter.h | 2 | ||||
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck.cc | 17 | ||||
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck.h | 4 |
3 files changed, 13 insertions, 10 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter.h b/chrome/browser/spellchecker/spellcheck_message_filter.h index dbc8f9c..500f22f 100644 --- a/chrome/browser/spellchecker/spellcheck_message_filter.h +++ b/chrome/browser/spellchecker/spellcheck_message_filter.h @@ -33,7 +33,7 @@ class SpellCheckMessageFilter : public content::BrowserMessageFilter { void OnSpellCheckerRequestDictionary(); void OnNotifyChecked(const base::string16& word, bool misspelled); void OnRespondDocumentMarkers(const std::vector<uint32>& markers); -#if !defined(OS_MACOSX) +#if !defined(USE_BROWSER_SPELLCHECKER) void OnCallSpellingService(int route_id, int identifier, const base::string16& text, diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc index bac0bf3..e354354 100644 --- a/chrome/renderer/spellchecker/spellcheck.cc +++ b/chrome/renderer/spellchecker/spellcheck.cc @@ -198,7 +198,7 @@ void SpellCheck::OnInit( custom_dictionary_.Init(custom_words); auto_spell_correct_turned_on_ = auto_spell_correct; -#if !defined(OS_MACOSX) +#if !defined(USE_BROWSER_SPELLCHECKER) PostDelayedSpellCheckTask(pending_request_param_.release()); #endif } @@ -261,8 +261,8 @@ bool SpellCheck::SpellCheckWord( bool SpellCheck::SpellCheckParagraph( const base::string16& text, WebVector<WebTextCheckingResult>* results) { -#if !defined(OS_MACOSX) - // Mac has its own spell checker, so this method will not be used. +#if !defined(USE_BROWSER_SPELLCHECKER) + // Mac and Android have their own spell checkers,so this method won't be used DCHECK(results); std::vector<WebTextCheckingResult> textcheck_results; size_t length = text.length(); @@ -301,7 +301,7 @@ bool SpellCheck::SpellCheckParagraph( return false; #else // This function is only invoked for spell checker functionality that runs - // on the render thread. OSX builds don't have that. + // on the render thread. OSX and Android builds don't have that. NOTREACHED(); return true; #endif @@ -360,7 +360,8 @@ base::string16 SpellCheck::GetAutoCorrectionWord(const base::string16& word, return autocorrect_word; } -#if !defined(OS_MACOSX) // OSX uses its own spell checker +// OSX and Android use their own spell checkers +#if !defined(USE_BROWSER_SPELLCHECKER) void SpellCheck::RequestTextChecking( const base::string16& text, blink::WebTextCheckingCompletion* completion) { @@ -389,7 +390,8 @@ bool SpellCheck::InitializeIfNeeded() { return initialize_if_needed; } -#if !defined(OS_MACOSX) // OSX doesn't have |pending_request_param_| +// OSX and Android don't have |pending_request_param_| +#if !defined(USE_BROWSER_SPELLCHECKER) void SpellCheck::PostDelayedSpellCheckTask(SpellcheckRequest* request) { if (!request) return; @@ -400,7 +402,8 @@ void SpellCheck::PostDelayedSpellCheckTask(SpellcheckRequest* request) { } #endif -#if !defined(OS_MACOSX) // Mac uses its platform engine instead. +// Mac and Android use their platform engines instead. +#if !defined(USE_BROWSER_SPELLCHECKER) void SpellCheck::PerformSpellCheck(SpellcheckRequest* param) { DCHECK(param); diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h index 85283e9..1977fae 100644 --- a/chrome/renderer/spellchecker/spellcheck.h +++ b/chrome/renderer/spellchecker/spellcheck.h @@ -95,7 +95,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 (OS_MACOSX) +#if !defined (USE_BROWSER_SPELLCHECKER) void RequestTextChecking(const base::string16& text, blink::WebTextCheckingCompletion* completion); #endif @@ -132,7 +132,7 @@ class SpellCheck : public content::RenderProcessObserver, void OnEnableSpellCheck(bool enable); void OnRequestDocumentMarkers(); -#if !defined (OS_MACOSX) +#if !defined (USE_BROWSER_SPELLCHECKER) // Posts delayed spellcheck task and clear it if any. // Takes ownership of |request|. void PostDelayedSpellCheckTask(SpellcheckRequest* request); |