diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 19:17:32 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 19:17:32 +0000 |
commit | 2a3a7764dc3343682a888f194c59b9ad48729e4b (patch) | |
tree | a99a6831e8ae561ff3230b254496aa3705684ef2 /chrome/browser/spellchecker_linux.cc | |
parent | 58ce21e623685e1e7b4c97ed7d59fbfb9c8e9801 (diff) | |
download | chromium_src-2a3a7764dc3343682a888f194c59b9ad48729e4b.zip chromium_src-2a3a7764dc3343682a888f194c59b9ad48729e4b.tar.gz chromium_src-2a3a7764dc3343682a888f194c59b9ad48729e4b.tar.bz2 |
Convert the spellchecker and associated messages and functions to use string16
for words instead of wstring. I also changed some places where it converted the
word to a string to do that conversion at the last possible second before
giving it to Hunspell (since this conversion isn't needed for Mac).
TEST=Covered by unit tests
BUG=none
Review URL: http://codereview.chromium.org/274077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker_linux.cc')
-rw-r--r-- | chrome/browser/spellchecker_linux.cc | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/chrome/browser/spellchecker_linux.cc b/chrome/browser/spellchecker_linux.cc index 1596b50..9f0f144 100644 --- a/chrome/browser/spellchecker_linux.cc +++ b/chrome/browser/spellchecker_linux.cc @@ -5,6 +5,7 @@ // If linux ever gains a platform specific spellchecker, it will be // implemented here. +#include "base/string16.h" #include "chrome/browser/spellchecker_common.h" namespace SpellCheckerPlatform { @@ -32,29 +33,29 @@ bool SpellingPanelVisible() { return false; } -void ShowSpellingPanel(bool show) { } +void ShowSpellingPanel(bool show) {} -void UpdateSpellingPanelWithMisspelledWord(const std::wstring& word) { } +void UpdateSpellingPanelWithMisspelledWord(const string16& word) {} -void Init() { } +void Init() {} -void SetLanguage(const std::string& lang_to_set) { } +void SetLanguage(const std::string& lang_to_set) {} -bool CheckSpelling(const std::string& word_to_check, int tag) { +bool CheckSpelling(const string16& word_to_check, int tag) { return false; } -void FillSuggestionList(const std::string& wrong_word, - std::vector<std::wstring>* optional_suggestions) { } +void FillSuggestionList(const string16& wrong_word, + std::vector<string16>* optional_suggestions) {} -void AddWord(const std::wstring& word) { } +void AddWord(const string16& word) {} -void RemoveWord(const std::wstring& word) { } +void RemoveWord(const string16& word) {} int GetDocumentTag() { return 0; } -void IgnoreWord(const std::string& word) { } +void IgnoreWord(const std::string& word) {} -void CloseDocumentWithTag(int tag) { } +void CloseDocumentWithTag(int tag) {} } // namespace SpellCheckerPlatform |