Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: ios/chrome/browser/passwords/password_generation_prompt_view.h

Issue 2585233003: Upstream Chrome on iOS source code [2/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/net/cookies_egtest.mm ('k') | ios/chrome/browser/passwords/password_generation_prompt_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698