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

Unified Diff: ios/chrome/browser/ui/tools_menu/tools_menu_model.h

Issue 2722693002: [ios] Creates ToolsMenuConstants file (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tools_menu/tools_menu_model.h
diff --git a/ios/chrome/browser/ui/tools_menu/tools_menu_model.h b/ios/chrome/browser/ui/tools_menu/tools_menu_model.h
index 2965b49115a1d3c976c66ccfe50cd466d8538a0c..5b64a84a0cb86cd5a26a3361e8fa3f0ca05ed61a 100644
--- a/ios/chrome/browser/ui/tools_menu/tools_menu_model.h
+++ b/ios/chrome/browser/ui/tools_menu/tools_menu_model.h
@@ -7,36 +7,7 @@
#import <Foundation/Foundation.h>
-// New Tab item accessibility Identifier.
-extern NSString* const kToolsMenuNewTabId;
-// New incognito Tab item accessibility Identifier.
-extern NSString* const kToolsMenuNewIncognitoTabId;
-// Close all Tabs item accessibility Identifier.
-extern NSString* const kToolsMenuCloseAllTabsId;
-// Close all incognito Tabs item accessibility Identifier.
-extern NSString* const kToolsMenuCloseAllIncognitoTabsId;
-// Bookmarks item accessibility Identifier.
-extern NSString* const kToolsMenuBookmarksId;
-// Reading List item accessibility Identifier.
-extern NSString* const kToolsMenuReadingListId;
-// Other Devices item accessibility Identifier.
-extern NSString* const kToolsMenuOtherDevicesId;
-// History item accessibility Identifier.
-extern NSString* const kToolsMenuHistoryId;
-// Report an issue item accessibility Identifier.
-extern NSString* const kToolsMenuReportAnIssueId;
-// Find in Page item accessibility Identifier.
-extern NSString* const kToolsMenuFindInPageId;
-// Reader Mode item accessibility Identifier.
-extern NSString* const kToolsMenuReaderMode;
-// Request desktop item accessibility Identifier.
-extern NSString* const kToolsMenuRequestDesktopId;
-// Settings item accessibility Identifier.
-extern NSString* const kToolsMenuSettingsId;
-// Help item accessibility Identifier.
-extern NSString* const kToolsMenuHelpId;
-// Suggestions item accessibility Identifier.
-extern NSString* const kToolsMenuSuggestionsId;
+#import "ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h"
// Total number of possible menu items.
const int kToolsMenuNumberOfItems = 15;
@@ -75,9 +46,9 @@ typedef NS_OPTIONS(NSUInteger, ToolbarType) {
extern const MenuItemInfo itemInfoList[kToolsMenuNumberOfItems];
// Returns true if a given item should be visible based on the Toolbar type
-// and if incognito mode or not.
+// and configuration.
bool ToolsMenuItemShouldBeVisible(const MenuItemInfo& item,
- bool incognito,
- ToolbarType toolbarType);
+ ToolbarType toolbarType,
+ ToolsMenuConfiguration* configuration);
#endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_MODEL_H_
« no previous file with comments | « ios/chrome/browser/ui/tools_menu/tools_menu_constants.mm ('k') | ios/chrome/browser/ui/tools_menu/tools_menu_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698