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

Unified Diff: ios/chrome/browser/passwords/password_generation_prompt_view_controller.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_controller.h
diff --git a/ios/chrome/browser/passwords/password_generation_prompt_view_controller.h b/ios/chrome/browser/passwords/password_generation_prompt_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..a61e43a240387af0bdc23767f8507c0d0f9b3e30
--- /dev/null
+++ b/ios/chrome/browser/passwords/password_generation_prompt_view_controller.h
@@ -0,0 +1,29 @@
+// Copyright 2016 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_CONTROLLER_H_
+#define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_CONTROLLER_H_
+
+#import <UIKit/UIKit.h>
+
+@class PasswordGenerationPromptDialog;
+
+// TODO(crbug.com/636874): move this to MDC if they support alerts with subview.
+// View controller used to handle the material design dialog.
+@interface PasswordGenerationPromptViewController : UIViewController
+
+// The |view| to be displayed by this ViewController.
+- (instancetype)initWithPassword:(NSString*)password
+ contentView:(PasswordGenerationPromptDialog*)contentView
+ viewController:(UIViewController*)viewController
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithNibName:(NSString*)nibNameOrNil
+ bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
+
+- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_PROMPT_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698