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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/passwords/password_generation_prompt_view.h
diff --git a/ios/chrome/browser/passwords/password_generation_prompt_view.h b/ios/chrome/browser/passwords/password_generation_prompt_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..c49ec9dee5d677da13327991b81a3418128262c5
--- /dev/null
+++ b/ios/chrome/browser/passwords/password_generation_prompt_view.h
@@ -0,0 +1,34 @@
+// 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_PROMPT_VIEW_H_
+#define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+@protocol PasswordGenerationPromptDelegate;
+
+// TODO(crbug.com/636874): move this to MDC if they support alerts with subview.
+// Returns an UIView that prompts the user with a |password| generated by Chrome
+// and explains what that means. The user can accept the password, cancel
+// password generation, or click a link to view all their saved passwords.
+@interface PasswordGenerationPromptDialog : UIView
+
+// Init the view. If the user accepts the password, the |delegate| will be
+// notified. Clicking a button will dismiss all UIViewController presented by
+// |viewController|.
+- (instancetype)initWithDelegate:(id<PasswordGenerationPromptDelegate>)delegate
+ viewController:(UIViewController*)viewController
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
+
+- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+
+// Configures the dialog containing the content with the |password| and the
+// buttons.
+- (void)configureGlobalViewWithPassword:(NSString*)password;
+@end
+
+#endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_H_
« 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