OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "ios/clean/chrome/browser/ui/dialogs/dialog_consumer.h" |
| 11 |
| 12 @protocol DialogDismissalCommands; |
| 13 |
| 14 // Class used to display dialogs. It is configured through the DialogConsumer |
| 15 // protocol, and is not meant to be subclassed. |
| 16 @interface DialogViewController : UIAlertController<DialogConsumer> |
| 17 |
| 18 // Initializer for a dialog with |style| that uses |dispatcher| to manage its |
| 19 // dismissal. |
| 20 - (instancetype)initWithStyle:(UIAlertControllerStyle)style |
| 21 dispatcher:(id<DialogDismissalCommands>)dispatcher; |
| 22 |
| 23 @end |
| 24 |
| 25 #endif // IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_VIEW_CONTROLLER_H_ |
OLD | NEW |