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/tab_contents/render_view_context_menu.h" | 5 #include "chrome/browser/tab_contents/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/search_engines/template_url_model.h" |
12 #include "chrome/browser/spellchecker.h" | 12 #include "chrome/browser/spellchecker.h" |
13 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
14 #include "webkit/glue/context_node_types.h" | |
15 | |
16 #include "generated_resources.h" | 14 #include "generated_resources.h" |
17 | 15 |
18 RenderViewContextMenu::RenderViewContextMenu( | 16 RenderViewContextMenu::RenderViewContextMenu( |
19 Menu::Delegate* delegate, | 17 Menu::Delegate* delegate, |
20 HWND owner, | 18 HWND owner, |
21 ContextNode node, | 19 ContextNode node, |
22 const std::wstring& misspelled_word, | 20 const std::wstring& misspelled_word, |
23 const std::vector<std::wstring>& misspelled_word_suggestions, | 21 const std::vector<std::wstring>& misspelled_word_suggestions, |
24 Profile* profile) | 22 Profile* profile) |
25 : Menu(delegate, Menu::TOPLEFT, owner), | 23 : Menu(delegate, Menu::TOPLEFT, owner), |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 165 |
168 // Add 'Check the spelling of this field' item in the sub menu. | 166 // Add 'Check the spelling of this field' item in the sub menu. |
169 spellchecker_sub_menu_->AppendMenuItem( | 167 spellchecker_sub_menu_->AppendMenuItem( |
170 IDC_CHECK_SPELLING_OF_THIS_FIELD, | 168 IDC_CHECK_SPELLING_OF_THIS_FIELD, |
171 l10n_util::GetString(IDS_CONTENT_CONTEXT_CHECK_SPELLING_OF_THIS_FIELD), | 169 l10n_util::GetString(IDS_CONTENT_CONTEXT_CHECK_SPELLING_OF_THIS_FIELD), |
172 CHECKBOX); | 170 CHECKBOX); |
173 | 171 |
174 AppendSeparator(); | 172 AppendSeparator(); |
175 AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_SELECTALL); | 173 AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_SELECTALL); |
176 } | 174 } |
OLD | NEW |