OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 @protocol PasswordGenerationPromptDelegate; |
| 11 |
| 12 // TODO(crbug.com/636874): move this to MDC if they support alerts with subview. |
| 13 // Returns an UIView that prompts the user with a |password| generated by Chrome |
| 14 // and explains what that means. The user can accept the password, cancel |
| 15 // password generation, or click a link to view all their saved passwords. |
| 16 @interface PasswordGenerationPromptDialog : UIView |
| 17 |
| 18 // Init the view. If the user accepts the password, the |delegate| will be |
| 19 // notified. Clicking a button will dismiss all UIViewController presented by |
| 20 // |viewController|. |
| 21 - (instancetype)initWithDelegate:(id<PasswordGenerationPromptDelegate>)delegate |
| 22 viewController:(UIViewController*)viewController |
| 23 NS_DESIGNATED_INITIALIZER; |
| 24 |
| 25 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
| 26 |
| 27 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| 28 |
| 29 // Configures the dialog containing the content with the |password| and the |
| 30 // buttons. |
| 31 - (void)configureGlobalViewWithPassword:(NSString*)password; |
| 32 @end |
| 33 |
| 34 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_H_ |
OLD | NEW |