diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 21:16:05 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 21:16:05 +0000 |
commit | 98324891649cf5fa7430c2e231ad5493fdb76c8e (patch) | |
tree | 4c48f7d44d002691e717526bdb2d7870296b10df /chrome/browser/spellchecker_linux.cc | |
parent | 1edc999cee504ed756ee798dfb1bfd95f53b4262 (diff) | |
download | chromium_src-98324891649cf5fa7430c2e231ad5493fdb76c8e.zip chromium_src-98324891649cf5fa7430c2e231ad5493fdb76c8e.tar.gz chromium_src-98324891649cf5fa7430c2e231ad5493fdb76c8e.tar.bz2 |
Adds support for the os x spelling panel to chromium. Users can
now access it from the main menu and context menu and use it to perform
spelling tasks. For more detail, see
http://code.google.com/p/chromium/wiki/SpellingPanelPlanningDoc
Patch from pwicks86@gmail.com (Paul Wicks).
BUG=None
TEST=The spelling panel should work in os x.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker_linux.cc')
-rw-r--r-- | chrome/browser/spellchecker_linux.cc | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/chrome/browser/spellchecker_linux.cc b/chrome/browser/spellchecker_linux.cc index 1452f74..1596b50 100644 --- a/chrome/browser/spellchecker_linux.cc +++ b/chrome/browser/spellchecker_linux.cc @@ -28,28 +28,33 @@ bool SpellCheckerProvidesPanel() { return false; } -bool SpellCheckerPanelVisible() { +bool SpellingPanelVisible() { return false; } -void Init() { -} +void ShowSpellingPanel(bool show) { } -void SetLanguage(const std::string& lang_to_set) { -} +void UpdateSpellingPanelWithMisspelledWord(const std::wstring& word) { } + +void Init() { } -bool CheckSpelling(const std::string& word_to_check) { +void SetLanguage(const std::string& lang_to_set) { } + +bool CheckSpelling(const std::string& word_to_check, int tag) { return false; } void FillSuggestionList(const std::string& wrong_word, - std::vector<std::wstring>* optional_suggestions) { -} + std::vector<std::wstring>* optional_suggestions) { } -void AddWord(const std::wstring& word) { -} +void AddWord(const std::wstring& word) { } -void RemoveWord(const std::wstring& word) { -} +void RemoveWord(const std::wstring& word) { } + +int GetDocumentTag() { return 0; } + +void IgnoreWord(const std::string& word) { } + +void CloseDocumentWithTag(int tag) { } } // namespace SpellCheckerPlatform |