| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/common/spellcheck_common.h" | 5 #include "chrome/common/spellcheck_common.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 | 8 |
| 9 namespace SpellCheckCommon { | 9 namespace chrome { |
| 10 namespace spellcheck_common { |
| 10 | 11 |
| 11 static const struct { | 12 static const struct { |
| 12 // The language. | 13 // The language. |
| 13 const char* language; | 14 const char* language; |
| 14 | 15 |
| 15 // The corresponding language and region, used by the dictionaries. | 16 // The corresponding language and region, used by the dictionaries. |
| 16 const char* language_region; | 17 const char* language_region; |
| 17 } g_supported_spellchecker_languages[] = { | 18 } g_supported_spellchecker_languages[] = { |
| 18 // Several languages are not to be included in the spellchecker list: | 19 // Several languages are not to be included in the spellchecker list: |
| 19 // th-TH, uk-UA | 20 // th-TH, uk-UA |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 171 } |
| 171 | 172 |
| 172 | 173 |
| 173 void SpellCheckLanguages(std::vector<std::string>* languages) { | 174 void SpellCheckLanguages(std::vector<std::string>* languages) { |
| 174 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(g_supported_spellchecker_languages); | 175 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(g_supported_spellchecker_languages); |
| 175 ++i) { | 176 ++i) { |
| 176 languages->push_back(g_supported_spellchecker_languages[i].language); | 177 languages->push_back(g_supported_spellchecker_languages[i].language); |
| 177 } | 178 } |
| 178 } | 179 } |
| 179 | 180 |
| 180 } // namespace SpellCheckCommon | 181 } // namespace spellcheck_common |
| 182 } // namespace chrome |
| OLD | NEW |