Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: ios/clean/chrome/browser/ui/tools/tools_menu_model.mm

Issue 2944703002: [ios clean] Adds ToolsMenu to Showcase. (Closed)
Patch Set: Remove BUILD.gn model target Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_actions.h ('k') | ios/showcase/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_actions.h ('k') | ios/showcase/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698