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_JAVA_SCRIPT_JAVA_SCRIPT_DIALOG_MEDIA
TOR_H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_JAVA_SCRIPT_JAVA_SCRIPT_DIALOG_MEDIA
TOR_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import "ios/clean/chrome/browser/ui/dialogs/dialog_mediator.h" |
| 11 |
| 12 @protocol JavaScriptDialogDismissalCommands; |
| 13 @class JavaScriptDialogRequest; |
| 14 |
| 15 // Class responsible for setting up a JavaScriptDialogConsumer. |
| 16 @interface JavaScriptDialogMediator : DialogMediator |
| 17 |
| 18 // Designated initializer for a mediator that uses |request| to configure |
| 19 // consumers and |dispatcher| for dismissal. Both arguments are expected to be |
| 20 // non-nil. |
| 21 - (instancetype)initWithRequest:(JavaScriptDialogRequest*)request |
| 22 dispatcher: |
| 23 (id<JavaScriptDialogDismissalCommands>)dispatcher |
| 24 NS_DESIGNATED_INITIALIZER; |
| 25 - (instancetype)init NS_UNAVAILABLE; |
| 26 |
| 27 @end |
| 28 |
| 29 #endif // IOS_CLEAN_CHROME_BROWSER_UI_DIALOGS_JAVA_SCRIPT_JAVA_SCRIPT_DIALOG_ME
DIATOR_H_ |
OLD | NEW |