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

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

Issue 2714813002: [iOS] Add Request Mobile Site cell to tools menu (Closed)
Patch Set: Fix unit test 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_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 1f7958319fd19e23ec2330f66a33ceb6fc098884..fc0407be8cd8b21b3a1017479fdce6bfce091b90 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,7 +7,7 @@
#import <UIKit/UIKit.h>
-@class ToolsMenuContext;
+@class ToolsMenuConfiguration;
// TODO(crbug.com/228521): Remove this once the new command/metric handling is
// implemented. This is a temporary workaround to allow metrics recording to
@@ -54,10 +54,13 @@ extern NSString* const kToolsMenuReadingListId;
// The tool button to be shown hovering above the popup.
@property(nonatomic, readonly) UIButton* toolsButton;
+// Keeps track of the items in tools menu.
+@property(nonatomic, copy) NSArray* menuItems;
+
@property(nonatomic, assign) id<ToolsPopupTableDelegate> delegate;
// Initializes the Tools popup menu.
-- (void)initializeMenu:(ToolsMenuContext*)context;
+- (void)initializeMenuWithConfiguration:(ToolsMenuConfiguration*)configuration;
// Returns the optimal height needed to display the menu items.
// The height returned is usually less than the |suggestedHeight| unless
@@ -86,9 +89,6 @@ extern NSString* const kToolsMenuReadingListId;
// Informs tools popup menu whether the switch to reader mode is possible.
- (void)setCanUseReaderMode:(BOOL)enabled;
-// Informs tools popup menu whether "Request Desktop Site" can be enabled.
-- (void)setCanUseDesktopUserAgent:(BOOL)value;
-
- (void)animateContentIn;
- (void)hideContent;

Powered by Google App Engine
This is Rietveld 408576698