| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/spellcheck/browser/spellcheck_platform.h" | 5 #include "components/spellcheck/browser/spellcheck_platform.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "components/spellcheck/common/spellcheck_switches.h" | 9 #include "components/spellcheck/common/spellcheck_features.h" |
| 10 | 10 |
| 11 namespace spellcheck_platform { | 11 namespace spellcheck_platform { |
| 12 | 12 |
| 13 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { | 13 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 std::string GetSpellCheckerLanguage() { | 16 std::string GetSpellCheckerLanguage() { |
| 17 return std::string(); | 17 return std::string(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 bool SpellCheckerAvailable() { | 20 bool SpellCheckerAvailable() { |
| 21 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 21 return spellcheck::IsAndroidSpellCheckFeatureEnabled(); |
| 22 spellcheck::switches::kEnableAndroidSpellChecker); | |
| 23 } | 22 } |
| 24 | 23 |
| 25 bool SpellCheckerProvidesPanel() { | 24 bool SpellCheckerProvidesPanel() { |
| 26 return false; | 25 return false; |
| 27 } | 26 } |
| 28 | 27 |
| 29 bool SpellingPanelVisible() { | 28 bool SpellingPanelVisible() { |
| 30 return false; | 29 return false; |
| 31 } | 30 } |
| 32 | 31 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void CloseDocumentWithTag(int tag) { | 66 void CloseDocumentWithTag(int tag) { |
| 68 } | 67 } |
| 69 | 68 |
| 70 void RequestTextCheck(int document_tag, | 69 void RequestTextCheck(int document_tag, |
| 71 const base::string16& text, | 70 const base::string16& text, |
| 72 TextCheckCompleteCallback callback) { | 71 TextCheckCompleteCallback callback) { |
| 73 | 72 |
| 74 } | 73 } |
| 75 | 74 |
| 76 } // namespace spellcheck_platform | 75 } // namespace spellcheck_platform |
| OLD | NEW |