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

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

Issue 2244083002: Componentize spellcheck [4]: spellcheck/browser and android java-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/spellchecker/spellcheck_platform.h"
6
7 #include "base/callback.h"
8 #include "base/command_line.h"
9 #include "components/spellcheck/common/spellcheck_switches.h"
10
11 namespace spellcheck_platform {
12
13 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) {
14 }
15
16 std::string GetSpellCheckerLanguage() {
17 return std::string();
18 }
19
20 bool SpellCheckerAvailable() {
21 return base::CommandLine::ForCurrentProcess()->HasSwitch(
22 spellcheck::switches::kEnableAndroidSpellChecker);
23 }
24
25 bool SpellCheckerProvidesPanel() {
26 return false;
27 }
28
29 bool SpellingPanelVisible() {
30 return false;
31 }
32
33 void ShowSpellingPanel(bool show) {
34 }
35
36 void UpdateSpellingPanelWithMisspelledWord(const base::string16& word) {
37 }
38
39 bool PlatformSupportsLanguage(const std::string& current_language) {
40 return true;
41 }
42
43 void SetLanguage(const std::string& lang_to_set) {
44 }
45
46 bool CheckSpelling(const base::string16& word_to_check, int tag) {
47 return true;
48 }
49
50 void FillSuggestionList(const base::string16& wrong_word,
51 std::vector<base::string16>* optional_suggestions) {
52 }
53
54 void AddWord(const base::string16& word) {
55 }
56
57 void RemoveWord(const base::string16& word) {
58 }
59
60 int GetDocumentTag() {
61 return 1;
62 }
63
64 void IgnoreWord(const base::string16& word) {
65 }
66
67 void CloseDocumentWithTag(int tag) {
68 }
69
70 void RequestTextCheck(int document_tag,
71 const base::string16& text,
72 TextCheckCompleteCallback callback) {
73
74 }
75
76 } // namespace spellcheck_platform
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698