OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
please use gerrit instead
2015/08/06 16:58:28
clang-format this whole file please.
dylanking
2015/08/07 03:33:54
Done.
| |
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" | |
9 #include "chrome/common/chrome_switches.h" | |
10 | 8 |
11 namespace spellcheck_platform { | 9 namespace spellcheck_platform { |
12 | 10 |
13 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { | 11 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { |
14 } | 12 } |
15 | 13 |
16 bool SpellCheckerAvailable() { | 14 bool SpellCheckerAvailable() { |
17 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 15 return true; |
groby-ooo-7-16
2015/08/06 22:10:08
Wrong base patchset?
dylanking
2015/08/07 03:33:54
We've decided to move a lot of the functionality t
| |
18 switches::kEnableAndroidSpellChecker); | |
19 } | 16 } |
20 | 17 |
21 bool SpellCheckerProvidesPanel() { | 18 bool SpellCheckerProvidesPanel() { |
22 return false; | 19 return false; |
23 } | 20 } |
24 | 21 |
25 bool SpellingPanelVisible() { | 22 bool SpellingPanelVisible() { |
26 return false; | 23 return false; |
27 } | 24 } |
28 | 25 |
29 void ShowSpellingPanel(bool show) { | 26 void ShowSpellingPanel(bool show) { |
30 } | 27 } |
31 | 28 |
32 void UpdateSpellingPanelWithMisspelledWord(const base::string16& word) { | 29 void UpdateSpellingPanelWithMisspelledWord(const base::string16& word) { |
33 } | 30 } |
34 | 31 |
35 bool PlatformSupportsLanguage(const std::string& current_language) { | 32 bool PlatformSupportsLanguage(const std::string& current_language) { |
36 return true; | 33 return true; |
37 } | 34 } |
38 | 35 |
39 void SetLanguage(const std::string& lang_to_set) { | 36 void SetLanguage(const std::string& lang_to_set) { |
40 } | 37 } |
41 | 38 |
42 bool CheckSpelling(const base::string16& word_to_check, int tag) { | 39 bool CheckSpelling(const base::string16& word_to_check, int tag) { |
43 return true; | 40 return true; |
44 } | 41 } |
45 | 42 |
46 void FillSuggestionList(const base::string16& wrong_word, | 43 void FillSuggestionList(const base::string16& wrong_word, |
47 std::vector<base::string16>* optional_suggestions) { | 44 std::vector<base::string16>* optional_suggestions) { |
48 } | 45 } |
49 | 46 |
50 void AddWord(const base::string16& word) { | 47 void AddWord(const base::string16& word) { |
51 } | 48 } |
52 | 49 |
53 void RemoveWord(const base::string16& word) { | 50 void RemoveWord(const base::string16& word) { |
54 } | 51 } |
55 | 52 |
56 int GetDocumentTag() { | 53 int GetDocumentTag() { |
57 return 1; | 54 return 1; |
58 } | 55 } |
59 | 56 |
60 void IgnoreWord(const base::string16& word) { | 57 void IgnoreWord(const base::string16& word) { |
61 } | 58 } |
62 | 59 |
63 void CloseDocumentWithTag(int tag) { | 60 void CloseDocumentWithTag(int tag) { |
64 } | 61 } |
65 | 62 |
66 void RequestTextCheck(int document_tag, | 63 void RequestTextCheck(int document_tag, |
67 const base::string16& text, | 64 const base::string16& text, |
68 TextCheckCompleteCallback callback) { | 65 TextCheckCompleteCallback callback) { |
69 | |
70 } | 66 } |
71 | 67 |
72 } // namespace spellcheck_platform | 68 } // namespace spellcheck_platform |
OLD | NEW |