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

Side by Side Diff: components/spellcheck/browser/spellcheck_platform_android.cc

Issue 2284583002: [Android] Add AndroidSpellChecker feature to allow for gradual rollout using finch. (Closed)
Patch Set: fix compile Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | components/spellcheck/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | components/spellcheck/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698