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

Issue 476313003: Mac: Improve tab strip layout in case of overflow (Closed)

Created:
6 years, 4 months ago by Andre
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Improve tab strip layout in case of overflow, so that tabs will not draw on top or behind the fullscreen and profile buttons. Calculate the maximum number of tabs we can show and hide the rest, similar to how it works on Linux and Windows. Also changed so that only the one active tab has a bigger minimum width (and draws the close button) instead of potentially multiple selected tabs. This also matches Linux and Windows. BUG=392137 Committed: https://crrev.com/d564db4ae0cd91a8981bb73e8d1e53fe5c1a066f Cr-Commit-Position: refs/heads/master@{#293654}

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : Fixes for rsesek #

Patch Set 4 : Fix unit test #

Patch Set 5 : Rebase and resolve conflict #

Patch Set 6 : Rebase conflict #

Patch Set 7 : Rebase again #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -58 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 5 chunks +17 lines, -27 lines 2 comments Download
M chrome/browser/ui/cocoa/tabs/tab_controller.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_controller.mm View 1 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 4 5 6 6 chunks +48 lines, -18 lines 0 comments Download

Messages

Total messages: 40 (14 generated)
Andre
Patchset #2 (id:20001) has been deleted
6 years, 3 months ago (2014-08-28 01:20:39 UTC) #1
Andre
rsesek@, please review. noms@, please review for avatar button. https://codereview.chromium.org/476313003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (left): https://codereview.chromium.org/476313003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#oldcode59 chrome/browser/ui/cocoa/browser_window_controller_private.mm:59: ...
6 years, 3 months ago (2014-08-28 16:34:29 UTC) #2
Andre
andresantoso@chromium.org changed reviewers: + noms@chromium.org, rsesek@chromium.org
6 years, 3 months ago (2014-08-28 17:17:25 UTC) #3
Andre
Robert, WDYT?
6 years, 3 months ago (2014-09-02 17:07:01 UTC) #4
Robert Sesek
Nice cleanup! https://codereview.chromium.org/476313003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/476313003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode318 chrome/browser/ui/cocoa/browser_window_controller_private.mm:318: [[self window] standardWindowButton:NSWindowFullScreenButton]; This returns nil on ...
6 years, 3 months ago (2014-09-02 18:17:49 UTC) #5
Andre
https://codereview.chromium.org/476313003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/476313003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode318 chrome/browser/ui/cocoa/browser_window_controller_private.mm:318: [[self window] standardWindowButton:NSWindowFullScreenButton]; On 2014/09/02 18:17:49, rsesek wrote: > ...
6 years, 3 months ago (2014-09-02 23:09:05 UTC) #6
Robert Sesek
LGTM
6 years, 3 months ago (2014-09-03 17:53:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/60001
6 years, 3 months ago (2014-09-03 17:58:46 UTC) #9
noms (inactive)
lgtm :)
6 years, 3 months ago (2014-09-03 18:00:22 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-09-03 18:57:06 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9631)
6 years, 3 months ago (2014-09-03 19:28:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/80001
6 years, 3 months ago (2014-09-04 03:33:38 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/12025) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/12137) chromium_presubmit ...
6 years, 3 months ago (2014-09-04 03:40:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/100001
6 years, 3 months ago (2014-09-04 16:04:29 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/51501)
6 years, 3 months ago (2014-09-04 16:23:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/120001
6 years, 3 months ago (2014-09-04 20:30:52 UTC) #23
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-05 12:50:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/120001
6 years, 3 months ago (2014-09-05 16:17:49 UTC) #27
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-05 18:18:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/120001
6 years, 3 months ago (2014-09-05 20:46:50 UTC) #31
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-05 22:49:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/476313003/140001
6 years, 3 months ago (2014-09-07 04:30:44 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:140001) as 184c5a4396554e9a55b8d57c73f0107002cdfa4e
6 years, 3 months ago (2014-09-07 04:53:17 UTC) #36
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/d564db4ae0cd91a8981bb73e8d1e53fe5c1a066f Cr-Commit-Position: refs/heads/master@{#293654}
6 years, 3 months ago (2014-09-10 03:43:58 UTC) #37
erikchen
https://codereview.chromium.org/476313003/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/476313003/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode384 chrome/browser/ui/cocoa/browser_window_controller_private.mm:384: if (![self isInAnyFullscreenMode] && fullScreenButton) { The comment references ...
6 years, 3 months ago (2014-09-11 01:20:54 UTC) #39
Andre
6 years, 3 months ago (2014-09-11 02:54:25 UTC) #40
Message was sent while issue was closed.
https://codereview.chromium.org/476313003/diff/140001/chrome/browser/ui/cocoa...
File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right):

https://codereview.chromium.org/476313003/diff/140001/chrome/browser/ui/cocoa...
chrome/browser/ui/cocoa/browser_window_controller_private.mm:384: if (![self
isInAnyFullscreenMode] && fullScreenButton) {
On 2014/09/11 01:20:54, erikchen wrote:
> The comment references OS versions, but your code doesn't make any checks for
OS
> version. You removed the previous check for IsOSLionOrLater(). Is this a
> mistake?

It was intentional.
In 10.6 and 10.10, fullScreenButton above will be nil because the button is not
present.
See comments in line 345.

Powered by Google App Engine
This is Rietveld 408576698