Chromium Code Reviews| 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_MEDIATOR_INTERNAL_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_MEDIATOR_INTERNAL_H_ | |
| 7 | |
| 8 #import "ios/clean/chrome/browser/ui/dialogs/dialog_mediator.h" | |
| 9 | |
| 10 #import "ios/clean/chrome/browser/ui/commands/dialog_commands.h" | |
| 11 | |
| 12 @class DialogButtonItem; | |
| 13 @class DialogTextFieldItem; | |
| 14 | |
| 15 // DialogMediator functionality exposed to subclasses. | |
|
marq (ping after 24h)
2017/06/14 10:52:15
Document that these methods/properties do nothing
kkhorimoto
2017/06/23 06:24:18
Done.
| |
| 16 @interface DialogMediator (Internal)<DialogDismissalCommands> | |
| 17 | |
| 18 // The dispatcher passed on initialization. | |
| 19 @property(nonatomic, readonly, strong) CommandDispatcher* dispatcher; | |
| 20 | |
| 21 // The title to provide to the consumer. | |
|
marq (ping after 24h)
2017/06/14 10:52:15
Should these just be readonly properties?
kkhorimoto
2017/06/23 06:24:18
The main reason was that I couldn't decide on what
| |
| 22 - (NSString*)dialogTitle; | |
| 23 | |
| 24 // The message to provide to the consumer. | |
| 25 - (NSString*)dialogMessage; | |
| 26 | |
| 27 // The DialogButtonItems to provide to the consumer. | |
| 28 - (NSArray<DialogButtonItem*>*)buttonItems; | |
| 29 | |
| 30 // The DialogTextFieldItems to provide to the consumer. | |
| 31 - (NSArray<DialogTextFieldItem*>*)textFieldItems; | |
| 32 | |
| 33 @end | |
| 34 | |
| 35 #endif // IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_MEDIATOR_INTERNAL_H_ | |
| OLD | NEW |