blob: 5321e9eeb12f29c1e956798dcd6651e46cc447ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
|