Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: chrome/browser/spellchecker_linux.cc

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/spellchecker.cc ('k') | chrome/browser/spellchecker_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/spellchecker_common.h" 8 #include "chrome/browser/spellchecker_common.h"
9 9
10 namespace SpellCheckerPlatform { 10 namespace SpellCheckerPlatform {
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { 23 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) {
24 spellcheck_languages->clear(); 24 spellcheck_languages->clear();
25 } 25 }
26 26
27 bool SpellCheckerProvidesPanel() { 27 bool SpellCheckerProvidesPanel() {
28 return false; 28 return false;
29 } 29 }
30 30
31 bool SpellCheckerPanelVisible() { 31 bool SpellingPanelVisible() {
32 return false; 32 return false;
33 } 33 }
34 34
35 void Init() { 35 void ShowSpellingPanel(bool show) { }
36 }
37 36
38 void SetLanguage(const std::string& lang_to_set) { 37 void UpdateSpellingPanelWithMisspelledWord(const std::wstring& word) { }
39 }
40 38
41 bool CheckSpelling(const std::string& word_to_check) { 39 void Init() { }
40
41 void SetLanguage(const std::string& lang_to_set) { }
42
43 bool CheckSpelling(const std::string& word_to_check, int tag) {
42 return false; 44 return false;
43 } 45 }
44 46
45 void FillSuggestionList(const std::string& wrong_word, 47 void FillSuggestionList(const std::string& wrong_word,
46 std::vector<std::wstring>* optional_suggestions) { 48 std::vector<std::wstring>* optional_suggestions) { }
47 }
48 49
49 void AddWord(const std::wstring& word) { 50 void AddWord(const std::wstring& word) { }
50 }
51 51
52 void RemoveWord(const std::wstring& word) { 52 void RemoveWord(const std::wstring& word) { }
53 } 53
54 int GetDocumentTag() { return 0; }
55
56 void IgnoreWord(const std::string& word) { }
57
58 void CloseDocumentWithTag(int tag) { }
54 59
55 } // namespace SpellCheckerPlatform 60 } // namespace SpellCheckerPlatform
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker.cc ('k') | chrome/browser/spellchecker_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698