| 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" |
| 11 #include "chrome/browser/search_engines/template_url_model.h" |
| 11 #include "chrome/browser/spellchecker.h" | 12 #include "chrome/browser/spellchecker.h" |
| 12 #include "chrome/browser/template_url_model.h" | |
| 13 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
| 14 #include "webkit/glue/context_node_types.h" | 14 #include "webkit/glue/context_node_types.h" |
| 15 | 15 |
| 16 #include "generated_resources.h" | 16 #include "generated_resources.h" |
| 17 | 17 |
| 18 RenderViewContextMenu::RenderViewContextMenu( | 18 RenderViewContextMenu::RenderViewContextMenu( |
| 19 Menu::Delegate* delegate, | 19 Menu::Delegate* delegate, |
| 20 HWND owner, | 20 HWND owner, |
| 21 ContextNode::Type type, | 21 ContextNode::Type type, |
| 22 const std::wstring& misspelled_word, | 22 const std::wstring& misspelled_word, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 // Add 'Check the spelling of this field' item in the sub menu. | 172 // Add 'Check the spelling of this field' item in the sub menu. |
| 173 spellchecker_sub_menu_->AppendMenuItem( | 173 spellchecker_sub_menu_->AppendMenuItem( |
| 174 IDC_CHECK_SPELLING_OF_THIS_FIELD, | 174 IDC_CHECK_SPELLING_OF_THIS_FIELD, |
| 175 l10n_util::GetString(IDS_CONTENT_CONTEXT_CHECK_SPELLING_OF_THIS_FIELD), | 175 l10n_util::GetString(IDS_CONTENT_CONTEXT_CHECK_SPELLING_OF_THIS_FIELD), |
| 176 CHECKBOX); | 176 CHECKBOX); |
| 177 | 177 |
| 178 AppendSeparator(); | 178 AppendSeparator(); |
| 179 AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_SELECTALL); | 179 AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_SELECTALL); |
| 180 } | 180 } |
| OLD | NEW |