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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm

Issue 23546007: [rAC, OSX] Namespaced constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix namespace comment. Created 7 years, 3 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
Index: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
index 16667185ed9df092d7e4fca05fd2189570efb9ba..d0ef0797e57c1b6bc943b5e0a76f2cdf428343af 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
@@ -341,7 +341,7 @@ void AutofillDialogCocoa::OnConstrainedWindowClosed(
NSSize headerSize = NSMakeSize(contentSize.width, kAccountChooserHeight);
NSSize size = NSMakeSize(
std::max(contentSize.width, headerSize.width),
- contentSize.height + headerSize.height + kDetailTopPadding);
+ contentSize.height + headerSize.height + autofill::kDetailTopPadding);
size.width += 2 * chrome_style::kHorizontalPadding;
size.height += chrome_style::kClientBottomPadding +
chrome_style::kTitleTopPadding;
@@ -362,7 +362,7 @@ void AutofillDialogCocoa::OnConstrainedWindowClosed(
// equivalent to the height of the header. Clarify with UX what the final
// padding will be.
if (height != 0.0) {
- size.height = height + headerSize.height + kDetailTopPadding;
+ size.height = height + headerSize.height + autofill::kDetailTopPadding;
}
}
@@ -382,7 +382,7 @@ void AutofillDialogCocoa::OnConstrainedWindowClosed(
NSDivideRect(clientRect, &headerRect, &mainRect,
kAccountChooserHeight, NSMinYEdge);
NSDivideRect(mainRect, &dummyRect, &mainRect,
- kDetailTopPadding, NSMinYEdge);
+ autofill::kDetailTopPadding, NSMinYEdge);
[accountChooser_ setFrame:headerRect];
if ([[signInContainer_ view] isHidden]) {

Powered by Google App Engine
This is Rietveld 408576698