OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "chrome/browser/tab_menu_model.h" | 5 #include "chrome/browser/tab_menu_model.h" |
6 | 6 |
7 #include "chrome/browser/defaults.h" | 7 #include "chrome/browser/defaults.h" |
8 #include "chrome/browser/tabs/tab_strip_model.h" | 8 #include "chrome/browser/tabs/tab_strip_model.h" |
9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 AddItemWithStringId(TabStripModel::CommandCloseOtherTabs, | 36 AddItemWithStringId(TabStripModel::CommandCloseOtherTabs, |
37 IDS_TAB_CXMENU_CLOSEOTHERTABS); | 37 IDS_TAB_CXMENU_CLOSEOTHERTABS); |
38 AddItemWithStringId(TabStripModel::CommandCloseTabsToRight, | 38 AddItemWithStringId(TabStripModel::CommandCloseTabsToRight, |
39 IDS_TAB_CXMENU_CLOSETABSTORIGHT); | 39 IDS_TAB_CXMENU_CLOSETABSTORIGHT); |
40 AddItemWithStringId(TabStripModel::CommandCloseTabsOpenedBy, | 40 AddItemWithStringId(TabStripModel::CommandCloseTabsOpenedBy, |
41 IDS_TAB_CXMENU_CLOSETABSOPENEDBY); | 41 IDS_TAB_CXMENU_CLOSETABSOPENEDBY); |
42 AddSeparator(); | 42 AddSeparator(); |
43 AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB); | 43 AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB); |
44 AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs, | 44 AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs, |
45 IDS_TAB_CXMENU_BOOKMARK_ALL_TABS); | 45 IDS_TAB_CXMENU_BOOKMARK_ALL_TABS); |
| 46 #if defined(OS_WIN) |
| 47 AddSeparator(); |
| 48 AddCheckItemWithStringId(TabStripModel::CommandUseVerticalTabs, |
| 49 IDS_TAB_CXMENU_USE_VERTICAL_TABS); |
| 50 #endif |
46 } | 51 } |
OLD | NEW |