| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ios/chrome/browser/passwords/password_generation_utils.h" | 5 #include "ios/chrome/browser/passwords/password_generation_utils.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "ios/chrome/browser/ui/ui_util.h" | 8 #include "ios/chrome/browser/ui/ui_util.h" |
| 9 | 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." |
| 12 #endif |
| 13 |
| 10 namespace passwords { | 14 namespace passwords { |
| 11 | 15 |
| 12 namespace { | 16 namespace { |
| 13 | 17 |
| 14 const CGFloat kPadding = IsIPadIdiom() ? 16 : 8; | 18 const CGFloat kPadding = IsIPadIdiom() ? 16 : 8; |
| 15 | 19 |
| 16 // The actual implementation of |RunPipeline| that begins with the first block | 20 // The actual implementation of |RunPipeline| that begins with the first block |
| 17 // in |blocks|. | 21 // in |blocks|. |
| 18 void RunSearchPipeline(NSArray* blocks, | 22 void RunSearchPipeline(NSArray* blocks, |
| 19 PipelineCompletionBlock on_complete, | 23 PipelineCompletionBlock on_complete, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 (CGRectGetHeight(outer_frame) - CGRectGetHeight(inner_frame)) / 2.0; | 45 (CGRectGetHeight(outer_frame) - CGRectGetHeight(inner_frame)) / 2.0; |
| 42 inner_frame.origin = CGPointMake(x, y); | 46 inner_frame.origin = CGPointMake(x, y); |
| 43 return inner_frame; | 47 return inner_frame; |
| 44 } | 48 } |
| 45 | 49 |
| 46 void RunSearchPipeline(NSArray* blocks, PipelineCompletionBlock on_complete) { | 50 void RunSearchPipeline(NSArray* blocks, PipelineCompletionBlock on_complete) { |
| 47 RunSearchPipeline(blocks, on_complete, 0); | 51 RunSearchPipeline(blocks, on_complete, 0); |
| 48 } | 52 } |
| 49 | 53 |
| 50 } // namespace passwords | 54 } // namespace passwords |
| OLD | NEW |