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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_header.mm

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| Created 5 years, 7 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698