OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_menu_model.h" | 5 #include "chrome/browser/ui/tabs/tab_menu_model.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/tabs/tab_strip_model.h" | 8 #include "chrome/browser/tabs/tab_strip_model.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
12 | 12 |
13 TabMenuModel::TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, | 13 TabMenuModel::TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, |
14 bool is_pinned) | 14 bool is_pinned) |
15 : menus::SimpleMenuModel(delegate) { | 15 : menus::SimpleMenuModel(delegate) { |
(...skipping 29 matching lines...) Expand all Loading... |
45 AddSeparator(); | 45 AddSeparator(); |
46 AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB); | 46 AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB); |
47 AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs, | 47 AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs, |
48 IDS_TAB_CXMENU_BOOKMARK_ALL_TABS); | 48 IDS_TAB_CXMENU_BOOKMARK_ALL_TABS); |
49 if (AreVerticalTabsEnabled()) { | 49 if (AreVerticalTabsEnabled()) { |
50 AddSeparator(); | 50 AddSeparator(); |
51 AddCheckItemWithStringId(TabStripModel::CommandUseVerticalTabs, | 51 AddCheckItemWithStringId(TabStripModel::CommandUseVerticalTabs, |
52 IDS_TAB_CXMENU_USE_VERTICAL_TABS); | 52 IDS_TAB_CXMENU_USE_VERTICAL_TABS); |
53 } | 53 } |
54 } | 54 } |
OLD | NEW |