blob: d8494b07ffc7652b5171d753f6b2fb47b3a1acbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_OFFER_VIEW_H_
#define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_OFFER_VIEW_H_
#import <UIKit/UIKit.h>
// Handles user interaction with the PasswordGenerationOfferView.
@protocol PasswordGenerationOfferDelegate<NSObject>
// Indicates that the user wants an auto-generated password.
- (void)generatePassword;
@end
// A view that offers to generate a password automatically.
@interface PasswordGenerationOfferView : UIView
// Initializes a view with the specified |delegate|.
- (instancetype)initWithDelegate:(id<PasswordGenerationOfferDelegate>)delegate;
@end
#endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_OFFER_VIEW_H_
|