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

Side by Side 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 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_UTILS_H_
6 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_UTILS_H_
7
8 #import <Foundation/Foundation.h>
9 #import <CoreGraphics/CoreGraphics.h>
10
11 namespace passwords {
12
13 // Returns the frame determined by moving |inner_frame| inside |outer_frame|
14 // for the password generation input accessory views.
15 CGRect GetGenerationAccessoryFrame(CGRect outer_frame, CGRect inner_frame);
16
17 // Block types for |RunSearchPipeline|.
18 typedef void (^PipelineBlock)(void (^completion)(BOOL));
19 typedef void (^PipelineCompletionBlock)(NSUInteger index);
20
21 // Executes each PipelineBlock in |blocks| in order until one invokes its
22 // completion with YES, in which case |on_complete| will be invoked with the
23 // |index| of the succeeding block, or until they all invoke their completions
24 // with NO, in which case |on_complete| will be invoked with NSNotFound.
25 void RunSearchPipeline(NSArray* blocks, PipelineCompletionBlock on_complete);
26
27 } // namespace passwords
28
29 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_UTILS_H_
OLDNEW
« 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