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/browser/ui/webui/options/language_options_handler_common.h" | 5 #include "chrome/browser/ui/webui/options/language_options_handler_common.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 { "displayInThisLanguage", | 73 { "displayInThisLanguage", |
74 IDS_OPTIONS_SETTINGS_LANGUAGES_DISPLAY_IN_THIS_LANGUAGE, | 74 IDS_OPTIONS_SETTINGS_LANGUAGES_DISPLAY_IN_THIS_LANGUAGE, |
75 product_id }, | 75 product_id }, |
76 { "restartRequired", IDS_OPTIONS_RELAUNCH_REQUIRED }, | 76 { "restartRequired", IDS_OPTIONS_RELAUNCH_REQUIRED }, |
77 // OS X uses the OS native spellchecker so no need for these strings. | 77 // OS X uses the OS native spellchecker so no need for these strings. |
78 #if !defined(OS_MACOSX) | 78 #if !defined(OS_MACOSX) |
79 { "useThisForSpellChecking", | 79 { "useThisForSpellChecking", |
80 IDS_OPTIONS_SETTINGS_USE_THIS_FOR_SPELL_CHECKING }, | 80 IDS_OPTIONS_SETTINGS_USE_THIS_FOR_SPELL_CHECKING }, |
81 { "cannotBeUsedForSpellChecking", | 81 { "cannotBeUsedForSpellChecking", |
82 IDS_OPTIONS_SETTINGS_CANNOT_BE_USED_FOR_SPELL_CHECKING }, | 82 IDS_OPTIONS_SETTINGS_CANNOT_BE_USED_FOR_SPELL_CHECKING }, |
83 { "isUsedForSpellChecking", | |
84 IDS_OPTIONS_SETTINGS_IS_USED_FOR_SPELL_CHECKING }, | |
85 { "enableSpellCheck", IDS_OPTIONS_ENABLE_SPELLCHECK }, | 83 { "enableSpellCheck", IDS_OPTIONS_ENABLE_SPELLCHECK }, |
86 { "downloadingDictionary", IDS_OPTIONS_DICTIONARY_DOWNLOADING }, | 84 { "downloadingDictionary", IDS_OPTIONS_DICTIONARY_DOWNLOADING }, |
87 { "downloadFailed", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAILED }, | 85 { "downloadFailed", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAILED }, |
88 { "retryButton", IDS_OPTIONS_DICTIONARY_DOWNLOAD_RETRY }, | 86 { "retryButton", IDS_OPTIONS_DICTIONARY_DOWNLOAD_RETRY }, |
89 { "downloadFailHelp", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAIL_HELP }, | 87 { "downloadFailHelp", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAIL_HELP }, |
90 #endif // !OS_MACOSX | 88 #endif // !OS_MACOSX |
91 { "addLanguageTitle", IDS_OPTIONS_LANGUAGES_ADD_TITLE }, | 89 { "addLanguageTitle", IDS_OPTIONS_LANGUAGES_ADD_TITLE }, |
92 { "addLanguageSelectLabel", IDS_OPTIONS_LANGUAGES_ADD_SELECT_LABEL }, | 90 { "addLanguageSelectLabel", IDS_OPTIONS_LANGUAGES_ADD_SELECT_LABEL }, |
93 { "restartButton", IDS_OPTIONS_SETTINGS_LANGUAGES_RELAUNCH_BUTTON }, | 91 { "restartButton", IDS_OPTIONS_SETTINGS_LANGUAGES_RELAUNCH_BUTTON }, |
94 { "offerToTranslateInThisLanguage", | 92 { "offerToTranslateInThisLanguage", |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 return; | 308 return; |
311 } | 309 } |
312 } | 310 } |
313 } | 311 } |
314 | 312 |
315 SpellcheckService* LanguageOptionsHandlerCommon::GetSpellcheckService() { | 313 SpellcheckService* LanguageOptionsHandlerCommon::GetSpellcheckService() { |
316 return SpellcheckServiceFactory::GetForContext(Profile::FromWebUI(web_ui())); | 314 return SpellcheckServiceFactory::GetForContext(Profile::FromWebUI(web_ui())); |
317 } | 315 } |
318 | 316 |
319 } // namespace options | 317 } // namespace options |
OLD | NEW |