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

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

Issue 23546007: [rAC, OSX] Namespaced constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Once more merge to HEAD 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_main_container.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm b/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
index b8b0bd9efb7f9ff8d3e5a429ab54fcd682934e4b..8e4cff760cb3c5a0e83f3663b98ec264b46d70c1 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
@@ -104,12 +104,12 @@
NSSize size = NSMakeSize(std::max(buttonSize.width, detailsSize.width),
buttonSize.height + detailsSize.height);
- size.height += kDetailBottomPadding;
+ size.height += autofill::kDetailBottomPadding;
if (![legalDocumentsView_ isHidden]) {
NSSize legalDocumentSize =
[self preferredLegalDocumentSizeForWidth:detailsSize.width];
- size.height += legalDocumentSize.height + kVerticalSpacing;
+ size.height += legalDocumentSize.height + autofill::kVerticalSpacing;
}
NSSize notificationSize =
@@ -125,7 +125,8 @@
if (![legalDocumentsView_ isHidden]) {
[legalDocumentsView_ setFrameSize:
[self preferredLegalDocumentSizeForWidth:NSWidth(bounds)]];
- currentY = NSMaxY([legalDocumentsView_ frame]) + kVerticalSpacing;
+ currentY = NSMaxY([legalDocumentsView_ frame]) +
+ autofill::kVerticalSpacing;
}
NSRect buttonFrame = [buttonContainer_ frame];
@@ -136,7 +137,7 @@
checkboxFrame.origin.y = NSMidY(buttonFrame) - NSHeight(checkboxFrame) / 2.0;
[saveInChromeCheckbox_ setFrameOrigin:checkboxFrame.origin];
- currentY = NSMaxY(buttonFrame) + kDetailBottomPadding;
+ currentY = NSMaxY(buttonFrame) + autofill::kDetailBottomPadding;
NSRect notificationFrame = NSZeroRect;
notificationFrame.size = [notificationContainer_ preferredSizeForWidth:
@@ -152,7 +153,7 @@
[detailsContainer_ performLayout];
notificationFrame.origin =
- NSMakePoint(0, NSMaxY(containerFrame) + kDetailTopPadding);
+ NSMakePoint(0, NSMaxY(containerFrame) + autofill::kDetailTopPadding);
[[notificationContainer_ view] setFrame:notificationFrame];
[notificationContainer_ performLayout];
}
@@ -175,7 +176,7 @@
[button sizeToFit];
[buttonContainer_ addSubview:button];
- CGFloat nextX = NSMaxX([button frame]) + kButtonGap;
+ CGFloat nextX = NSMaxX([button frame]) + autofill::kButtonGap;
button.reset([[ConstrainedWindowButton alloc] initWithFrame:NSZeroRect]);
[button setFrameOrigin:NSMakePoint(nextX, 0)];
[button setTitle:l10n_util::GetNSStringWithFixup(

Powered by Google App Engine
This is Rietveld 408576698