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_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_MEDIATOR_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 @class CommandDispatcher; | |
| 11 @protocol DialogConsumer; | |
| 12 | |
| 13 // Class responsible for setting up a DialogConsumer. | |
|
marq (ping after 24h)
2017/06/14 10:52:15
Document that this class is expected to be subclas
kkhorimoto
2017/06/23 06:24:18
Done.
| |
| 14 @interface DialogMediator : NSObject | |
| 15 | |
| 16 // Designated initializer for a mediator that sets up |consumer|. | |
| 17 - (instancetype)initWithDispatcher:(CommandDispatcher*)dispatcher | |
| 18 NS_DESIGNATED_INITIALIZER; | |
| 19 - (instancetype)init NS_UNAVAILABLE; | |
| 20 | |
| 21 // Supplies UI information to |consumer|. | |
| 22 - (void)updateConsumer:(id<DialogConsumer>)consumer; | |
| 23 | |
| 24 // Called when the corresponding coordinator is started or stopped. | |
| 25 - (void)dialogWillStart; | |
| 26 - (void)dialogWillStop; | |
| 27 | |
| 28 @end | |
| 29 | |
| 30 #endif // IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_DIALOG_MEDIATOR_H_ | |
| OLD | NEW |