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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_platform_android.cc

Issue 2166683003: Componentize spellcheck [1]: create component and move switches there. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + --no-find-copies Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/spellchecker/feedback_sender_unittest.cc ('k') | chrome/chrome_common.gypi » ('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 "chrome/browser/spellchecker/spellcheck_platform.h" 5 #include "chrome/browser/spellchecker/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 "chrome/common/chrome_switches.h" 9 #include "components/spellcheck/common/spellcheck_switches.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 base::CommandLine::ForCurrentProcess()->HasSwitch(
22 switches::kEnableAndroidSpellChecker); 22 spellcheck::switches::kEnableAndroidSpellChecker);
23 } 23 }
24 24
25 bool SpellCheckerProvidesPanel() { 25 bool SpellCheckerProvidesPanel() {
26 return false; 26 return false;
27 } 27 }
28 28
29 bool SpellingPanelVisible() { 29 bool SpellingPanelVisible() {
30 return false; 30 return false;
31 } 31 }
32 32
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void CloseDocumentWithTag(int tag) { 67 void CloseDocumentWithTag(int tag) {
68 } 68 }
69 69
70 void RequestTextCheck(int document_tag, 70 void RequestTextCheck(int document_tag,
71 const base::string16& text, 71 const base::string16& text,
72 TextCheckCompleteCallback callback) { 72 TextCheckCompleteCallback callback) {
73 73
74 } 74 }
75 75
76 } // namespace spellcheck_platform 76 } // namespace spellcheck_platform
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/feedback_sender_unittest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698