| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_win.h" | 5 #include "chrome/browser/tab_contents/render_view_context_menu_win.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 8 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
| 9 #include "chrome/common/l10n_util.h" | |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 | 11 |
| 12 RenderViewContextMenuWin::RenderViewContextMenuWin( | 12 RenderViewContextMenuWin::RenderViewContextMenuWin( |
| 13 TabContents* tab_contents, | 13 TabContents* tab_contents, |
| 14 const ContextMenuParams& params, | 14 const ContextMenuParams& params, |
| 15 HWND owner) | 15 HWND owner) |
| 16 : RenderViewContextMenu(tab_contents, params), | 16 : RenderViewContextMenu(tab_contents, params), |
| 17 ALLOW_THIS_IN_INITIALIZER_LIST(menu_(this, Menu::TOPLEFT, owner)), | 17 ALLOW_THIS_IN_INITIALIZER_LIST(menu_(this, Menu::TOPLEFT, owner)), |
| 18 sub_menu_(NULL) { | 18 sub_menu_(NULL) { |
| 19 InitMenu(params.node); | 19 InitMenu(params.node); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return true; | 110 return true; |
| 111 | 111 |
| 112 case IDS_CONTENT_CONTEXT_SELECTALL: | 112 case IDS_CONTENT_CONTEXT_SELECTALL: |
| 113 *accel = views::Accelerator(L'A', false, true, false); | 113 *accel = views::Accelerator(L'A', false, true, false); |
| 114 return true; | 114 return true; |
| 115 | 115 |
| 116 default: | 116 default: |
| 117 return false; | 117 return false; |
| 118 } | 118 } |
| 119 } | 119 } |
| OLD | NEW |