Chromium Code Reviews| Index: ios/chrome/browser/ui/alert_coordinator/action_sheet.h |
| diff --git a/ios/chrome/browser/ui/alert_coordinator/action_sheet.h b/ios/chrome/browser/ui/alert_coordinator/action_sheet.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..59dda27ee44df7726278dba4cf0388244de92038 |
| --- /dev/null |
| +++ b/ios/chrome/browser/ui/alert_coordinator/action_sheet.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_UI_ALERT_COORDINATOR_ACTION_SHEET_H_ |
| +#define IOS_CHROME_BROWSER_UI_ALERT_COORDINATOR_ACTION_SHEET_H_ |
| + |
| +#import <UIKit/UIKit.h> |
| + |
| +#import "ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h" |
| + |
| +namespace web { |
| +struct ContextMenuParams; |
| +} |
| + |
| +// Delegate for the AlertCoordinator, charged with displaying context menus for |
| +// all device form factors. Will show a sheet on the phone and use a popover on |
|
michaeldo
2016/07/18 15:29:07
ContextMenuParams shouldn't be used anywhere in th
|
| +// a tablet. |
| +@interface ActionSheet : NSObject<AlertCoordinatorDelegate> |
|
lpromero
2016/07/18 12:11:35
I don't like the names of these new classes. What
gambard
2016/07/18 12:40:20
I was concerned about misunderstanding "ActionShee
lpromero
2016/07/18 12:51:43
As per a comment here: https://codereview.chromium
marq (ping after 24h)
2016/07/18 13:02:41
ObjC *classes* shouldn't be named 'Delegate', sinc
|
| + |
| +// Initializes with details provided in |params|. |
| +- (instancetype)initWithParams:(const web::ContextMenuParams&)params; |
|
marq (ping after 24h)
2016/07/18 13:02:41
NS_DESIGNATED_INITIALIZER, and mark the regular -i
|
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_UI_ALERT_COORDINATOR_ACTION_SHEET_H_ |