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_CONSUMER_H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_CONSUMER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class DialogButtonConfiguration; |
| 11 @class DialogTextFieldConfiguration; |
| 12 |
| 13 // A DialogConsumer uses data provided by this protocol to configure and run a |
| 14 // dialog. A DialogConsumer can be configured multiple times before |
| 15 // presentation, but once the consumer is presented, the appearance of the |
| 16 // dialog will be immutable. |
| 17 @protocol DialogConsumer<NSObject> |
| 18 |
| 19 // Sets the title of the dialog. |
| 20 - (void)setDialogTitle:(NSString*)title; |
| 21 |
| 22 // Sets the message of the dialog. |
| 23 - (void)setDialogMessage:(NSString*)message; |
| 24 |
| 25 // Sets the button items to display in the dialog. |
| 26 - (void)setDialogButtonConfigurations: |
| 27 (NSArray<DialogButtonConfiguration*>*)buttonConfigs; |
| 28 |
| 29 // Sets the text field items to display in the dialog. |
| 30 - (void)setDialogTextFieldConfigurations: |
| 31 (NSArray<DialogTextFieldConfiguration*>*)textFieldConfigs; |
| 32 |
| 33 @end |
| 34 |
| 35 #endif // IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_CONSUMER_H_ |
OLD | NEW |