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_COMMANDS_DIALOG_COMMANDS_H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_DIALOG_COMMANDS_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // Command protocol for dismissing DialogConsumers. |
| 11 @protocol DialogDismissalCommands |
| 12 |
| 13 // Called to dismiss the dialog. |buttonID| is the identifier of the |
| 14 // DialogButtonConfiguration corresponding with the dialog button that was |
| 15 // tapped, if any. |textFieldValues| contains the user input text. The keys |
| 16 // are the identifiers of the DialogTextFieldConfigurations passed to the |
| 17 // consumer, and the values are the text in their corresponding text fields. |
| 18 - (void)dismissDialogWithButtonID:(id)buttonID |
| 19 textFieldValues:(NSDictionary<id, NSString*>*)textFieldValues; |
| 20 |
| 21 @end |
| 22 |
| 23 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_DIALOG_COMMANDS_H_ |
OLD | NEW |