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

Unified Diff: chrome/browser/ui/cocoa/one_click_signin_view_controller.mm

Issue 107673002: OneClickSigninBubbleView: Update the bubble form to reflect new bubble/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sky@ comments. Created 6 years, 11 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/one_click_signin_view_controller.mm
diff --git a/chrome/browser/ui/cocoa/one_click_signin_view_controller.mm b/chrome/browser/ui/cocoa/one_click_signin_view_controller.mm
index 8d27c1ae4f20d2e4ef5a1884e513044468dcb068..5e4d9677656be4c8629a1f96ae0a26f03caf024c 100644
--- a/chrome/browser/ui/cocoa/one_click_signin_view_controller.mm
+++ b/chrome/browser/ui/cocoa/one_click_signin_view_controller.mm
@@ -161,6 +161,11 @@ void ShiftOriginY(NSView* view, CGFloat amount) {
[GTMUILocalizerAndLayoutTweaker
sizeToFitFixedWidthTextField:messageTextField_];
+ ShiftOriginY(titleTextField_, totalYOffset);
+ totalYOffset +=
+ [GTMUILocalizerAndLayoutTweaker
+ sizeToFitFixedWidthTextField:titleTextField_];
+
if (closeButton_)
ShiftOriginY(closeButton_, totalYOffset);
@@ -225,6 +230,11 @@ void ShiftOriginY(NSView* view, CGFloat amount) {
messageColor:[NSColor blackColor]
linkColor:linkColor];
+
+ // Make the "Advanced" link font as large as the "Learn More" link.
+ [[advancedLink_ cell] setFont:font];
+ [advancedLink_ sizeToFit];
+
// Size to fit.
[[informativePlaceholderTextField_ cell] setAttributedStringValue:
[informativeTextView_ attributedString]];

Powered by Google App Engine
This is Rietveld 408576698