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

Issue 1527012: Mac: Make content bubbles wider in languages that have long translations of "Manage" and "Done. (Closed)

Created:
10 years, 8 months ago by Nico
Modified:
9 years, 7 months ago
Reviewers:
TVL, viettrungluu
CC:
chromium-reviews
Visibility:
Public.

Description

Mac: Make content bubbles wider in languages that have long translations of "Manage" and "Done. xib changes: Anchor bubble view on right side, make it autoresize horizontally. Same for divider line, radio groups, and title. Make widthbased tweakers at bottom horizontally autoresize. Hook up manage and done buttons to controller. BUG=39393 TEST=See bug. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43698

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : wide #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -53 lines) Patch
M chrome/app/nibs/ContentBlockedCookies.xib View 1 9 chunks +36 lines, -7 lines 0 comments Download
M chrome/app/nibs/ContentBlockedImages.xib View 9 chunks +32 lines, -10 lines 0 comments Download
M chrome/app/nibs/ContentBlockedJavaScript.xib View 9 chunks +32 lines, -10 lines 0 comments Download
M chrome/app/nibs/ContentBlockedPlugins.xib View 9 chunks +32 lines, -10 lines 0 comments Download
M chrome/app/nibs/ContentBlockedPopups.xib View 9 chunks +32 lines, -10 lines 0 comments Download
M chrome/app/nibs/ContentBubbleGeolocation.xib View 9 chunks +26 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller.mm View 1 2 4 chunks +22 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Nico
10 years, 8 months ago (2010-04-06 02:21:42 UTC) #1
viettrungluu
http://codereview.chromium.org/1527012/diff/2001/3008 File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right): http://codereview.chromium.org/1527012/diff/2001/3008#newcode102 chrome/browser/cocoa/content_blocked_bubble_controller.mm:102: - (void)makeWideEnough; The name of this method is ...
10 years, 8 months ago (2010-04-06 03:18:56 UTC) #2
Nico
http://codereview.chromium.org/1527012/diff/2001/3008 File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right): http://codereview.chromium.org/1527012/diff/2001/3008#newcode102 chrome/browser/cocoa/content_blocked_bubble_controller.mm:102: - (void)makeWideEnough; On 2010/04/06 03:18:56, viettrungluu wrote: > The ...
10 years, 8 months ago (2010-04-06 04:11:15 UTC) #3
viettrungluu
Other than naming, LGTM on the code. My psychic connection to the .xib files is ...
10 years, 8 months ago (2010-04-06 04:15:54 UTC) #4
Nico
On Mon, Apr 5, 2010 at 9:15 PM, <viettrungluu@chromium.org> wrote: > Other than naming, LGTM ...
10 years, 8 months ago (2010-04-06 04:17:21 UTC) #5
TVL
10 years, 8 months ago (2010-04-06 12:02:09 UTC) #6
http://codereview.chromium.org/1527012/diff/8001/9008
File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right):

http://codereview.chromium.org/1527012/diff/8001/9008#newcode57
chrome/browser/cocoa/content_blocked_bubble_controller.mm:57: const int
kManageDonePadding = 8;
rather then having padding constants, I usually try to make the things in the
nib sized with the padding that is needed/min.  Then at runtime, you simply have
to see if the button grows/shrinks with the right text in it.  If it shrunk,
you're done, if it grows, grow the window by that same amount to keep the
padding at that min.

Powered by Google App Engine
This is Rietveld 408576698