Chromium Code Reviews| Index: ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h |
| diff --git a/ios/chrome/browser/ui/context_menu/context_menu_coordinator.h b/ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h |
| similarity index 60% |
| copy from ios/chrome/browser/ui/context_menu/context_menu_coordinator.h |
| copy to ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h |
| index 7f1daf20e5afd82a7204b251b44d251bb8773779..907d2e83f7af251fe4d13ca39a63c84976ae8eee 100644 |
| --- a/ios/chrome/browser/ui/context_menu/context_menu_coordinator.h |
| +++ b/ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h |
| @@ -7,7 +7,7 @@ |
| #import <UIKit/UIKit.h> |
| -#include "base/ios/block_types.h" |
| +#import "ios/chrome/browser/ui/alert_coordinator/alert_controller_coordinator.h" |
| namespace web { |
| struct ContextMenuParams; |
| @@ -15,25 +15,16 @@ struct ContextMenuParams; |
| // Abstracts displaying context menus for all device form factors. Will show a |
| // sheet on the phone and use a popover on a tablet. |
| -@interface ContextMenuCoordinator : NSObject |
|
lpromero
2016/07/06 09:03:58
Add a TODO in this controller that it is deprecate
gambard
2016/07/07 08:57:42
Done.
|
| - |
| -// Whether the context menu is visible. This will be true after |-start| is |
| -// called until a subsequent |-stop|. |
| -@property(nonatomic, readonly, getter=isVisible) BOOL visible; |
| +@interface ActionSheetCoordinator : AlertControllerCoordinator |
| // Initializes with details provided in |params|. Context menu will be presented |
| // from |viewController|. |
| - (instancetype)initWithViewController:(UIViewController*)viewController |
| params:(const web::ContextMenuParams&)params; |
| -// Adds an item at the end of the menu if |visible| is false. |
| -- (void)addItemWithTitle:(NSString*)title action:(ProceduralBlock)action; |
| - |
| -// Displays the context menu. |
| -- (void)start; |
| -// Dismisses the context menu. Any menu items which have been added will be |
| -// cleared after this call. |
| -- (void)stop; |
| +// ContextMenuParams are mandatory. |
| +- (instancetype)initWithBaseViewController:(UIViewController*)viewController |
| + NS_UNAVAILABLE; |
| @end |