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

Side by Side Diff: chrome/common/spellcheck_common.h

Issue 395007: Move Mac to using renderer spellchecker. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: ui test fix Created 11 years, 1 month 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/common/render_messages_internal.h ('k') | chrome/common/spellcheck_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_SPELLCHECK_COMMON_H_
6 #define CHROME_COMMON_SPELLCHECK_COMMON_H_
7
8 #include <string>
9 #include <vector>
10
11 class FilePath;
12
13 namespace SpellCheckCommon {
14
15 // Max number of dictionary suggestions.
16 static const int kMaxSuggestions = 5;
17
18 static const int kMaxAutoCorrectWordSize = 8;
19
20 FilePath GetVersionedFileName(const std::string& input_language,
21 const FilePath& dict_dir);
22
23 std::string GetCorrespondingSpellCheckLanguage(const std::string& language);
24
25 // Get SpellChecker supported languages.
26 void SpellCheckLanguages(std::vector<std::string>* languages);
27
28
29 // This function returns ll (language code) from ll-RR where 'RR' (region
30 // code) is redundant. However, if the region code matters, it's preserved.
31 // That is, it returns 'hi' and 'en-GB' for 'hi-IN' and 'en-GB' respectively.
32 std::string GetLanguageFromLanguageRegion(std::string input_language);
33
34 } // namespace SpellCheckCommon
35
36 #endif // CHROME_COMMON_SPELLCHECK_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/spellcheck_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698