1// Copyright (c) 2011 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#pragma once
8
9#include <string>
10#include <vector>
11
12class FilePath;
13
14namespace SpellCheckCommon {
15
16// Max number of dictionary suggestions.
17static const int kMaxSuggestions = 5;
18
19static const int kMaxAutoCorrectWordSize = 8;
20
21FilePath GetVersionedFileName(const std::string& input_language,
22                              const FilePath& dict_dir);
23
24std::string GetCorrespondingSpellCheckLanguage(const std::string& language);
25
26// Get SpellChecker supported languages.
27void SpellCheckLanguages(std::vector<std::string>* languages);
28
29}  // namespace SpellCheckCommon
30
31#endif  // CHROME_COMMON_SPELLCHECK_COMMON_H_
32