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

Side by Side Diff: chrome/browser/spellchecker.h

Issue 14408: Port the spell checker to posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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/spellcheck_worditerator.cc ('k') | chrome/browser/spellchecker.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_SPELLCHECKER_H__ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_H__
6 #define CHROME_BROWSER_SPELLCHECKER_H__ 6 #define CHROME_BROWSER_SPELLCHECKER_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void AddCustomWordsToHunspell(); 100 void AddCustomWordsToHunspell();
101 101
102 void set_file_is_downloading(bool value); 102 void set_file_is_downloading(bool value);
103 103
104 // Memory maps the given .bdic file. On success, it will return true and will 104 // Memory maps the given .bdic file. On success, it will return true and will
105 // place the data and lenght into the given out parameters. 105 // place the data and lenght into the given out parameters.
106 bool MapBdictFile(const unsigned char** data, size_t* length); 106 bool MapBdictFile(const unsigned char** data, size_t* length);
107 107
108 // Returns whether or not the given word is a contraction of valid words 108 // Returns whether or not the given word is a contraction of valid words
109 // (e.g. "word:word"). 109 // (e.g. "word:word").
110 bool IsValidContraction(const Language& word); 110 bool IsValidContraction(const string16& word);
111 111
112 // Return the file name of the dictionary, including the path and the version 112 // Return the file name of the dictionary, including the path and the version
113 // numbers. 113 // numbers.
114 std::wstring GetVersionedFileName(const Language& language, 114 std::wstring GetVersionedFileName(const Language& language,
115 const std::wstring& dict_dir); 115 const std::wstring& dict_dir);
116 116
117 static Language GetCorrespondingSpellCheckLanguage(const Language& language); 117 static Language GetCorrespondingSpellCheckLanguage(const Language& language);
118 118
119 // Path to the spellchecker file. 119 // Path to the spellchecker file.
120 std::wstring bdict_file_name_; 120 std::wstring bdict_file_name_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Used for generating callbacks to spellchecker, since spellchecker is a 168 // Used for generating callbacks to spellchecker, since spellchecker is a
169 // non-reference counted object. The callback is generated by generating tasks 169 // non-reference counted object. The callback is generated by generating tasks
170 // using NewRunableMethod on these objects. 170 // using NewRunableMethod on these objects.
171 ScopedRunnableMethodFactory<SpellChecker> dic_download_state_changer_factory_; 171 ScopedRunnableMethodFactory<SpellChecker> dic_download_state_changer_factory_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(SpellChecker); 173 DISALLOW_COPY_AND_ASSIGN(SpellChecker);
174 }; 174 };
175 175
176 #endif // #ifndef CHROME_BROWSER_SPELLCHECKER_H__ 176 #endif // #ifndef CHROME_BROWSER_SPELLCHECKER_H__
177 177
OLDNEW
« no previous file with comments | « chrome/browser/spellcheck_worditerator.cc ('k') | chrome/browser/spellchecker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698