| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #import "ios/clean/chrome/browser/ui/tools/tools_menu_model.h" | 5 #import "ios/clean/chrome/browser/ui/tools/tools_menu_model.h" |
| 6 | 6 |
| 7 #include "components/strings/grit/components_strings.h" | 7 #include "components/strings/grit/components_strings.h" |
| 8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" | 8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" |
| 9 #include "ios/chrome/grit/ios_strings.h" | 9 #include "ios/chrome/grit/ios_strings.h" |
| 10 #import "ios/clean/chrome/browser/ui/commands/find_in_page_visibility_commands.h
" |
| 10 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h" | 11 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h" |
| 11 #import "ios/clean/chrome/browser/ui/tools/tools_actions.h" | |
| 12 | 12 |
| 13 // Declare all the possible items. | 13 // Declare all the possible items. |
| 14 const MenuModelItem itemsModelList[] = { | 14 const MenuModelItem itemsModelList[] = { |
| 15 // clang-format off | 15 // clang-format off |
| 16 { IDS_IOS_TOOLS_MENU_NEW_TAB, kToolsMenuNewTabId, | 16 { IDS_IOS_TOOLS_MENU_NEW_TAB, kToolsMenuNewTabId, |
| 17 ToolbarTypeAll, ItemVisibleAlways, | 17 ToolbarTypeAll, ItemVisibleAlways, |
| 18 nil }, | 18 nil }, |
| 19 { IDS_IOS_TOOLS_MENU_NEW_INCOGNITO_TAB, kToolsMenuNewIncognitoTabId, | 19 { IDS_IOS_TOOLS_MENU_NEW_INCOGNITO_TAB, kToolsMenuNewIncognitoTabId, |
| 20 ToolbarTypeAll, ItemVisibleAlways, | 20 ToolbarTypeAll, ItemVisibleAlways, |
| 21 nil }, | 21 nil }, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 ToolbarTypeNone, ItemVisibleAlways, | 57 ToolbarTypeNone, ItemVisibleAlways, |
| 58 nil }, | 58 nil }, |
| 59 { IDS_IOS_TOOLS_MENU_SETTINGS, kToolsMenuSettingsId, | 59 { IDS_IOS_TOOLS_MENU_SETTINGS, kToolsMenuSettingsId, |
| 60 ToolbarTypeAll, ItemVisibleAlways, | 60 ToolbarTypeAll, ItemVisibleAlways, |
| 61 NSStringFromSelector(@selector(showSettings)) }, | 61 NSStringFromSelector(@selector(showSettings)) }, |
| 62 { IDS_IOS_TOOLS_MENU_HELP_MOBILE, kToolsMenuHelpId, | 62 { IDS_IOS_TOOLS_MENU_HELP_MOBILE, kToolsMenuHelpId, |
| 63 ToolbarTypeWeb, ItemVisibleAlways, | 63 ToolbarTypeWeb, ItemVisibleAlways, |
| 64 nil }, | 64 nil }, |
| 65 // clang-format on | 65 // clang-format on |
| 66 }; | 66 }; |
| OLD | NEW |