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

Side by Side Diff: ios/chrome/browser/ui/tools_menu/tools_popup_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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_POPUP_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_POPUP_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_POPUP_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_POPUP_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/ui/popup_menu/popup_menu_controller.h" 10 #import "ios/chrome/browser/ui/popup_menu/popup_menu_controller.h"
11 11
12 // The a11y ID of the tools menu table view (used by integration tests). 12 // The a11y ID of the tools menu table view (used by integration tests).
13 extern NSString* const kToolsMenuTableViewId; 13 extern NSString* const kToolsMenuTableViewId;
14 14
15 @protocol BrowserCommands;
15 @class ToolsMenuConfiguration; 16 @class ToolsMenuConfiguration;
16 17
17 // The view controller for the tools menu within the top toolbar. 18 // The view controller for the tools menu within the top toolbar.
18 // The menu is composed of two main view: a top view with icons and a bottom 19 // The menu is composed of two main view: a top view with icons and a bottom
19 // view with a table view of menu items. 20 // view with a table view of menu items.
20 @interface ToolsPopupController : PopupMenuController 21 @interface ToolsPopupController : PopupMenuController
21 22
22 @property(nonatomic, assign) BOOL isCurrentPageBookmarked; 23 @property(nonatomic, assign) BOOL isCurrentPageBookmarked;
23 24
24 // Initializes the popup with the given |configuration|, a set of information 25 // Initializes the popup with the given |configuration|, a set of information
25 // used to determine the appearance of the menu and the entries displayed. 26 // used to determine the appearance of the menu and the entries displayed.
26 - (instancetype)initWithConfiguration:(ToolsMenuConfiguration*)configuration; 27 - (instancetype)initWithConfiguration:(ToolsMenuConfiguration*)configuration
28 dispatcher:(id<BrowserCommands>)dispatcher;
27 29
28 // Called when the current tab loading state changes. 30 // Called when the current tab loading state changes.
29 - (void)setIsTabLoading:(BOOL)isTabLoading; 31 - (void)setIsTabLoading:(BOOL)isTabLoading;
30 32
31 // TODO(stuartmorgan): Should the set of options that are passed in to the 33 // TODO(stuartmorgan): Should the set of options that are passed in to the
32 // constructor just have the ability to specify whether commands should be 34 // constructor just have the ability to specify whether commands should be
33 // enabled or disabled rather than having these individual setters? b/6048639 35 // enabled or disabled rather than having these individual setters? b/6048639
34 // Informs tools popup menu whether "Find In Page..." command should be 36 // Informs tools popup menu whether "Find In Page..." command should be
35 // enabled. 37 // enabled.
36 - (void)setCanShowFindBar:(BOOL)enabled; 38 - (void)setCanShowFindBar:(BOOL)enabled;
37 39
38 // Informs tools popup menu whether "Share..." command should be enabled. 40 // Informs tools popup menu whether "Share..." command should be enabled.
39 - (void)setCanShowShareMenu:(BOOL)enabled; 41 - (void)setCanShowShareMenu:(BOOL)enabled;
40 42
41 // Informs tools popup menu whether the switch to reader mode is possible. 43 // Informs tools popup menu whether the switch to reader mode is possible.
42 - (void)setCanUseReaderMode:(BOOL)enabled; 44 - (void)setCanUseReaderMode:(BOOL)enabled;
43 45
44 @end 46 @end
45 47
46 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_POPUP_CONTROLLER_H_ 48 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698