OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/autofill/autofill_header.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_header.h" |
6 | 6 |
7 #import "chrome/browser/ui/cocoa/autofill/autofill_account_chooser.h" | |
8 #include "base/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
9 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
10 #include "chrome/browser/ui/chrome_style.h" | 9 #include "chrome/browser/ui/chrome_style.h" |
| 10 #import "chrome/browser/ui/cocoa/autofill/autofill_account_chooser.h" |
11 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" | 11 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // Height of the account chooser. | 15 // Height of the account chooser. |
16 const CGFloat kAccountChooserHeight = 20.0; | 16 const CGFloat kAccountChooserHeight = 20.0; |
17 | 17 |
18 } // namespace | 18 } // namespace |
19 | 19 |
20 @implementation AutofillHeader | 20 @implementation AutofillHeader |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 CGFloat accountChooserWidth = | 77 CGFloat accountChooserWidth = |
78 NSMaxX(bounds) - chrome_style::kHorizontalPadding - accountChooserLeftX; | 78 NSMaxX(bounds) - chrome_style::kHorizontalPadding - accountChooserLeftX; |
79 NSRect accountChooserFrame = | 79 NSRect accountChooserFrame = |
80 NSMakeRect(accountChooserLeftX, autofill::kDetailVerticalPadding, | 80 NSMakeRect(accountChooserLeftX, autofill::kDetailVerticalPadding, |
81 accountChooserWidth, kAccountChooserHeight); | 81 accountChooserWidth, kAccountChooserHeight); |
82 [accountChooser_ setFrame:accountChooserFrame]; | 82 [accountChooser_ setFrame:accountChooserFrame]; |
83 [accountChooser_ performLayout]; | 83 [accountChooser_ performLayout]; |
84 } | 84 } |
85 | 85 |
86 @end | 86 @end |
OLD | NEW |