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 "base/string16.h" | 8 #include "spellchecker_platform_engine.h" |
9 #include "chrome/browser/spellchecker_common.h" | |
10 | 9 |
11 namespace SpellCheckerPlatform { | 10 namespace SpellCheckerPlatform { |
12 | 11 |
13 bool SpellCheckerAvailable() { | 12 bool SpellCheckerAvailable() { |
14 // As of Summer 2009, there is no commonly accepted platform spellchecker | 13 // As of Summer 2009, there is no commonly accepted platform spellchecker |
15 // for linux, so we'll return false here. | 14 // for Linux, so we'll return false here. |
16 return false; | 15 return false; |
17 } | 16 } |
18 | 17 |
19 // The following methods are just stubs to keep the linker happy. | 18 // The following methods are just stubs to keep the linker happy. |
20 bool PlatformSupportsLanguage(const std::string& current_language) { | 19 bool PlatformSupportsLanguage(const std::string& current_language) { |
21 return false; | 20 return false; |
22 } | 21 } |
23 | 22 |
24 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { | 23 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { |
25 spellcheck_languages->clear(); | 24 spellcheck_languages->clear(); |
(...skipping 21 matching lines...) Expand all Loading... |
47 | 46 |
48 void FillSuggestionList(const string16& wrong_word, | 47 void FillSuggestionList(const string16& wrong_word, |
49 std::vector<string16>* optional_suggestions) {} | 48 std::vector<string16>* optional_suggestions) {} |
50 | 49 |
51 void AddWord(const string16& word) {} | 50 void AddWord(const string16& word) {} |
52 | 51 |
53 void RemoveWord(const string16& word) {} | 52 void RemoveWord(const string16& word) {} |
54 | 53 |
55 int GetDocumentTag() { return 0; } | 54 int GetDocumentTag() { return 0; } |
56 | 55 |
57 void IgnoreWord(const std::string& word) {} | 56 void IgnoreWord(const string16& word) {} |
58 | 57 |
59 void CloseDocumentWithTag(int tag) {} | 58 void CloseDocumentWithTag(int tag) {} |
60 | 59 |
61 } // namespace SpellCheckerPlatform | 60 } // namespace SpellCheckerPlatform |
OLD | NEW |