diff options
author | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-28 08:12:46 +0000 |
---|---|---|
committer | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-28 08:12:46 +0000 |
commit | 8ec712669f54c98a84e0179732a8ac500595d8b0 (patch) | |
tree | ee5ebaeaa14d1755e787b266a15a734dac75a801 /chrome/browser/spellchecker/spellchecker_linux.cc | |
parent | 44de067f822aa0f1c6e87486631dbbb684b745ff (diff) | |
download | chromium_src-8ec712669f54c98a84e0179732a8ac500595d8b0.zip chromium_src-8ec712669f54c98a84e0179732a8ac500595d8b0.tar.gz chromium_src-8ec712669f54c98a84e0179732a8ac500595d8b0.tar.bz2 |
Moved spellcheck related files to chrome/browser/spellcheck directory.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/7518001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker/spellchecker_linux.cc')
-rw-r--r-- | chrome/browser/spellchecker/spellchecker_linux.cc | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker/spellchecker_linux.cc b/chrome/browser/spellchecker/spellchecker_linux.cc new file mode 100644 index 0000000..5321e9e --- /dev/null +++ b/chrome/browser/spellchecker/spellchecker_linux.cc @@ -0,0 +1,66 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// If linux ever gains a platform specific spellchecker, it will be +// implemented here. + +#include "spellchecker_platform_engine.h" + +namespace SpellCheckerPlatform { + +bool SpellCheckerAvailable() { + // As of Summer 2009, there is no commonly accepted platform spellchecker + // for Linux, so we'll return false here. + return false; +} + +// The following methods are just stubs to keep the linker happy. +bool PlatformSupportsLanguage(const std::string& current_language) { + return false; +} + +void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { + spellcheck_languages->clear(); +} + +bool SpellCheckerProvidesPanel() { + return false; +} + +bool SpellingPanelVisible() { + return false; +} + +void ShowSpellingPanel(bool show) {} + +void UpdateSpellingPanelWithMisspelledWord(const string16& word) {} + +void Init() {} + +void SetLanguage(const std::string& lang_to_set) {} + +bool CheckSpelling(const string16& word_to_check, int tag) { + return false; +} + +void FillSuggestionList(const string16& wrong_word, + std::vector<string16>* optional_suggestions) {} + +void AddWord(const string16& word) {} + +void RemoveWord(const string16& word) {} + +int GetDocumentTag() { return 0; } + +void IgnoreWord(const string16& word) {} + +void CloseDocumentWithTag(int tag) {} + +void RequestTextCheck(int route_id, + int identifier, + int document_tag, + const string16& text, + BrowserMessageFilter* destination) {} + +} // namespace SpellCheckerPlatform |