OLD | NEW |
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 #ifndef CHROME_BROWSER_SPELLCHECKER_COMMON_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_COMMON_H_ |
6 #define CHROME_BROWSER_SPELLCHECKER_COMMON_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_COMMON_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 // Some constants and typedefs that are common to all spellchecker | 11 // Some constants and typedefs that are common to all spellchecker |
12 // files/classes/backends/platforms/whatever. | 12 // files/classes/backends/platforms/whatever. |
13 | 13 |
14 typedef std::string Language; | |
15 typedef std::vector<Language> Languages; | |
16 | |
17 static const int kMaxSuggestions = 5; // Max number of dictionary suggestions. | 14 static const int kMaxSuggestions = 5; // Max number of dictionary suggestions. |
18 | 15 |
19 static const int kMaxAutoCorrectWordSize = 8; | 16 static const int kMaxAutoCorrectWordSize = 8; |
20 | 17 |
21 #endif // CHROME_BROWSER_SPELLCHECKER_COMMON_H_ | 18 #endif // CHROME_BROWSER_SPELLCHECKER_COMMON_H_ |
22 | 19 |
OLD | NEW |