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

Issue 6036005: Mac: trivial clean up of tab strip layout code + unseeable layout fix. (Closed)

Created:
9 years, 12 months ago by viettrungluu
Modified:
9 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Mac: trivial clean up of tab strip layout code + unseeable layout fix. The placement of the new tab button was wrong when a placeholder is present ... but in that case the new tab button wasn't shown. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70296

Patch Set 1 #

Total comments: 2

Patch Set 2 : cleaned up cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -8 lines) Patch
M chrome/browser/ui/cocoa/tab_strip_controller.mm View 1 4 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
viettrungluu
Doing trivial things to code I'm about to completely rewrite....
9 years, 12 months ago (2010-12-30 03:07:42 UTC) #1
Nico
LG with nit. Why are you about to rewrite this? If the answer is "just ...
9 years, 12 months ago (2010-12-30 03:56:06 UTC) #2
viettrungluu
9 years, 12 months ago (2010-12-30 05:07:20 UTC) #3
I have my reasons for wanting to rewrite this. I'd tell you, but then I'd have
to kill you. (I'll tell you if that's okay with you. Or you can just wait for
the next CL.)

http://codereview.chromium.org/6036005/diff/1/chrome/browser/ui/cocoa/tab_str...
File chrome/browser/ui/cocoa/tab_strip_controller.mm (right):

http://codereview.chromium.org/6036005/diff/1/chrome/browser/ui/cocoa/tab_str...
chrome/browser/ui/cocoa/tab_strip_controller.mm:910: NSMakePoint(MAX(offset,
NSMaxX(placeholderFrame_) - kTabOverlap) +
On 2010/12/30 03:56:06, Nico wrote:
> As you would say, "I hate this formatting". Maybe introduce a variable for
some
> subexpression for x (maybe for |NSMaxX(placeholderFrame_) - kTabOverlap| or
> |MAX(offset, NSMaxX(placeholderFrame_) - kTabOverlap)|, and then have one line
> for x and one for y.

Done. I hated the formatting too. Ironically, introducing a variable allowed me
to fit it on only two lines (sensibly).

Powered by Google App Engine
This is Rietveld 408576698