| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/render_view_context_menu.h" | 5 #include "chrome/browser/render_view_context_menu.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/app/chrome_dll_resource.h" | 8 #include "chrome/app/chrome_dll_resource.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 std::wstring local_language(l10n_util::GetLocalName( | 162 std::wstring local_language(l10n_util::GetLocalName( |
| 163 language_vector.at(i), app_locale, true)); | 163 language_vector.at(i), app_locale, true)); |
| 164 spellchecker_sub_menu_->AppendMenuItem( | 164 spellchecker_sub_menu_->AppendMenuItem( |
| 165 IDC_SPELLCHECK_LANGUAGES_FIRST + i, local_language, RADIO); | 165 IDC_SPELLCHECK_LANGUAGES_FIRST + i, local_language, RADIO); |
| 166 } | 166 } |
| 167 | 167 |
| 168 // Add item in the sub menu to pop up the fonts and languages options menu. | 168 // Add item in the sub menu to pop up the fonts and languages options menu. |
| 169 spellchecker_sub_menu_->AppendSeparator(); | 169 spellchecker_sub_menu_->AppendSeparator(); |
| 170 spellchecker_sub_menu_->AppendDelegateMenuItem( | 170 spellchecker_sub_menu_->AppendDelegateMenuItem( |
| 171 IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS); | 171 IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS); |
| 172 |
| 173 // Add 'Check the spelling of this field' item in the sub menu. |
| 174 spellchecker_sub_menu_->AppendMenuItem( |
| 175 IDC_CHECK_SPELLING_OF_THIS_FIELD, |
| 176 l10n_util::GetString(IDS_CONTENT_CONTEXT_CHECK_SPELLING_OF_THIS_FIELD), |
| 177 CHECKBOX); |
| 178 |
| 172 AppendSeparator(); | 179 AppendSeparator(); |
| 173 AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_SELECTALL); | 180 AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_SELECTALL); |
| 174 } | 181 } |
| OLD | NEW |