| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ios/clean/chrome/browser/ui/tools/tools_menu_model.h" |
| 6 |
| 7 #include "components/strings/grit/components_strings.h" |
| 8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" |
| 9 #include "ios/chrome/grit/ios_strings.h" |
| 10 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h" |
| 11 #import "ios/clean/chrome/browser/ui/tools/tools_actions.h" |
| 12 |
| 13 // Declare all the possible items. |
| 14 const MenuModelItem itemsModelList[] = { |
| 15 // clang-format off |
| 16 { IDS_IOS_TOOLS_MENU_NEW_TAB, kToolsMenuNewTabId, |
| 17 ToolbarTypeAll, ItemVisibleAlways, |
| 18 nil }, |
| 19 { IDS_IOS_TOOLS_MENU_NEW_INCOGNITO_TAB, kToolsMenuNewIncognitoTabId, |
| 20 ToolbarTypeAll, ItemVisibleAlways, |
| 21 nil }, |
| 22 { IDS_IOS_TOOLS_MENU_CLOSE_ALL_TABS, kToolsMenuCloseAllTabsId, |
| 23 ToolbarTypeSwitcher, ItemVisibleNotIncognitoOnly, |
| 24 nil }, |
| 25 { IDS_IOS_TOOLS_MENU_CLOSE_ALL_INCOGNITO_TABS, |
| 26 kToolsMenuCloseAllIncognitoTabsId, |
| 27 ToolbarTypeSwitcher, ItemVisibleIncognitoOnly, |
| 28 nil }, |
| 29 { IDS_IOS_TOOLS_MENU_BOOKMARKS, kToolsMenuBookmarksId, |
| 30 ToolbarTypeNone, ItemVisibleAlways, |
| 31 nil }, |
| 32 { IDS_IOS_TOOLS_MENU_READING_LIST, kToolsMenuReadingListId, |
| 33 ToolbarTypeNone, ItemVisibleAlways, |
| 34 nil }, |
| 35 { IDS_IOS_TOOLS_MENU_SUGGESTIONS, kToolsMenuSuggestionsId, |
| 36 ToolbarTypeNone, ItemVisibleAlways, |
| 37 nil }, |
| 38 { IDS_IOS_TOOLS_MENU_RECENT_TABS, kToolsMenuOtherDevicesId, |
| 39 ToolbarTypeNone, ItemVisibleNotIncognitoOnly, |
| 40 nil }, |
| 41 { IDS_HISTORY_SHOW_HISTORY, kToolsMenuHistoryId, |
| 42 ToolbarTypeWeb, ItemVisibleAlways, |
| 43 nil }, |
| 44 { IDS_IOS_OPTIONS_REPORT_AN_ISSUE, kToolsMenuReportAnIssueId, |
| 45 ToolbarTypeAll, ItemVisibleAlways, |
| 46 nil }, |
| 47 { IDS_IOS_TOOLS_MENU_FIND_IN_PAGE, kToolsMenuFindInPageId, |
| 48 ToolbarTypeWeb, ItemVisibleAlways, |
| 49 NSStringFromSelector(@selector(showFindInPage)) }, |
| 50 { IDS_IOS_TOOLS_MENU_REQUEST_DESKTOP_SITE, kToolsMenuRequestDesktopId, |
| 51 ToolbarTypeNone, ItemVisibleAlways, |
| 52 nil }, |
| 53 { IDS_IOS_TOOLS_MENU_REQUEST_MOBILE_SITE, kToolsMenuRequestMobileId, |
| 54 ToolbarTypeNone, ItemVisibleAlways, |
| 55 nil }, |
| 56 { IDS_IOS_TOOLS_MENU_READER_MODE, kToolsMenuReaderMode, |
| 57 ToolbarTypeNone, ItemVisibleAlways, |
| 58 nil }, |
| 59 { IDS_IOS_TOOLS_MENU_SETTINGS, kToolsMenuSettingsId, |
| 60 ToolbarTypeAll, ItemVisibleAlways, |
| 61 NSStringFromSelector(@selector(showSettings)) }, |
| 62 { IDS_IOS_TOOLS_MENU_HELP_MOBILE, kToolsMenuHelpId, |
| 63 ToolbarTypeWeb, ItemVisibleAlways, |
| 64 nil }, |
| 65 // clang-format on |
| 66 }; |
| OLD | NEW |