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

Unified Diff: ios/chrome/browser/passwords/password_generation_utils.h

Issue 1022463002: [iOS] Upstream files in //ios/chrome/browser/autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 months 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
« no previous file with comments | « ios/chrome/browser/passwords/OWNERS ('k') | ios/chrome/browser/passwords/password_generation_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/passwords/password_generation_utils.h
diff --git a/ios/chrome/browser/passwords/password_generation_utils.h b/ios/chrome/browser/passwords/password_generation_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..63e485b4be630b3c14ec6ac80b2b3cf6995fdf9b
--- /dev/null
+++ b/ios/chrome/browser/passwords/password_generation_utils.h
@@ -0,0 +1,29 @@
+// 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_UTILS_H_
+#define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_UTILS_H_
+
+#import <Foundation/Foundation.h>
+#import <CoreGraphics/CoreGraphics.h>
+
+namespace passwords {
+
+// Returns the frame determined by moving |inner_frame| inside |outer_frame|
+// for the password generation input accessory views.
+CGRect GetGenerationAccessoryFrame(CGRect outer_frame, CGRect inner_frame);
+
+// Block types for |RunSearchPipeline|.
+typedef void (^PipelineBlock)(void (^completion)(BOOL));
+typedef void (^PipelineCompletionBlock)(NSUInteger index);
+
+// Executes each PipelineBlock in |blocks| in order until one invokes its
+// completion with YES, in which case |on_complete| will be invoked with the
+// |index| of the succeeding block, or until they all invoke their completions
+// with NO, in which case |on_complete| will be invoked with NSNotFound.
+void RunSearchPipeline(NSArray* blocks, PipelineCompletionBlock on_complete);
+
+} // namespace passwords
+
+#endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_UTILS_H_
« no previous file with comments | « ios/chrome/browser/passwords/OWNERS ('k') | ios/chrome/browser/passwords/password_generation_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698