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

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

Issue 2965963002: [ios] Remove IDC_STOP and IDC_RELOAD
Patch Set: Rebased. Created 3 years, 5 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_view_controller.h
diff --git a/ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h b/ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h
index 5c3905e1614e5f776b402eaae2d5d3666567d90d..f702b16d11689bd0ba546d7d9849aab373d04060 100644
--- a/ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h
+++ b/ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h
@@ -7,6 +7,7 @@
#import <UIKit/UIKit.h>
+@protocol BrowserCommands;
@class ToolsMenuConfiguration;
// TODO(crbug.com/228521): Remove this once the new command/metric handling is
@@ -34,6 +35,12 @@ extern NSString* const kToolsMenuHelpId;
extern NSString* const kToolsMenuReadingListId;
extern NSString* const kToolsMenuRequestMobileId;
+typedef NS_ENUM(int, ToolsMenuItemID) {
+ // All of these items should be < 0.
+ TOOLS_STOP_ITEM = -1,
+ TOOLS_RELAOD_ITEM = -2,
+};
+
// Tools Popup Table Delegate Protocol
@protocol ToolsPopupTableDelegate<NSObject>
// Called when a menu item for command |commandID| is selected.
@@ -59,6 +66,9 @@ extern NSString* const kToolsMenuRequestMobileId;
@property(nonatomic, weak) id<ToolsPopupTableDelegate> delegate;
+// Dispatcher for browser commands.
+@property(nonatomic, weak) id<BrowserCommands> dispatcher;
+
// Initializes the Tools popup menu.
- (void)initializeMenuWithConfiguration:(ToolsMenuConfiguration*)configuration;

Powered by Google App Engine
This is Rietveld 408576698