OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // If linux ever gains a platform specific spellchecker, it will be | 5 // If linux ever gains a platform specific spellchecker, it will be |
6 // implemented here. | 6 // implemented here. |
7 | 7 |
8 #include "chrome/browser/spellchecker_common.h" | 8 #include "chrome/browser/spellchecker_common.h" |
9 | 9 |
10 namespace SpellCheckerPlatform { | 10 namespace SpellCheckerPlatform { |
11 | 11 |
12 bool SpellCheckerAvailable() { | 12 bool SpellCheckerAvailable() { |
13 // As of Summer 2009, there is no commonly accepted platform spellchecker | 13 // As of Summer 2009, there is no commonly accepted platform spellchecker |
14 // for linux, so we'll return false here. | 14 // for linux, so we'll return false here. |
15 return false; | 15 return false; |
16 } | 16 } |
17 | 17 |
18 // The following methods are just stubs to keep the linker happy. | 18 // The following methods are just stubs to keep the linker happy. |
19 bool PlatformSupportsLanguage(const Language& current_language) { | 19 bool PlatformSupportsLanguage(const std::string& current_language) { |
20 return false; | 20 return false; |
21 } | 21 } |
22 | 22 |
23 void Init() { | 23 void Init() { |
24 } | 24 } |
25 | 25 |
26 void SetLanguage(const Language& lang_to_set) { | 26 void SetLanguage(const std::string& lang_to_set) { |
27 } | 27 } |
28 | 28 |
29 bool CheckSpelling(const std::string& word_to_check) { | 29 bool CheckSpelling(const std::string& word_to_check) { |
30 return false; | 30 return false; |
31 } | 31 } |
32 | 32 |
33 void FillSuggestionList(const std::string& wrong_word, | 33 void FillSuggestionList(const std::string& wrong_word, |
34 std::vector<std::wstring>* optional_suggestions) { | 34 std::vector<std::wstring>* optional_suggestions) { |
35 } | 35 } |
36 | 36 |
37 void AddWord(const std::wstring& word) { | 37 void AddWord(const std::wstring& word) { |
38 } | 38 } |
39 | 39 |
40 void RemoveWord(const std::wstring& word) { | 40 void RemoveWord(const std::wstring& word) { |
41 } | 41 } |
42 | 42 |
43 } // namespace SpellCheckerPlatform | 43 } // namespace SpellCheckerPlatform |
OLD | NEW |