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

Issue 339923005: Clip tabs in overflow mode. (Closed)

Created:
6 years, 6 months ago by Peter Kasting
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, dcheng
Visibility:
Public.

Description

Clip tabs in overflow mode. The tabstrip now tries to ensure that if tabs would encroach on the New Tab button area or be clipped by the edge of the strip, they're made invisible instead. This prevents glitchy-looking overflow, modulo some existing bugs (on file) where the strip doesn't recalculate widths correctly. This also hides the tab next to the New Tab button if it can be shown when not selected, but might be hidden when it (or a prior tab) is selected. This prevents having this tab toggle in and out as the active tab changes. BUG=62510 TEST=Spawn lots of tabs and shrink the window to a narrow width. Once the tabs hit their min size they should start hiding at the right edge instead of drawing atop the New Tab button. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278028

Patch Set 1 #

Total comments: 7

Patch Set 2 : Review comments #

Patch Set 3 : Compile #

Patch Set 4 : Unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -70 lines) Patch
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 16 chunks +148 lines, -62 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_unittest.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Kasting
Most of the changes to TabStrip::RemoveTabDelegate are just cleanup that got left out of the ...
6 years, 6 months ago (2014-06-17 19:12:39 UTC) #1
sky
Sure would be nice to have some test coverage too... https://codereview.chromium.org/339923005/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/339923005/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc#newcode740 ...
6 years, 6 months ago (2014-06-17 19:41:18 UTC) #2
Peter Kasting
I'm not opposed to test coverage, but it's not immediately obvious to me how to ...
6 years, 6 months ago (2014-06-17 20:20:20 UTC) #3
sky
The important thing you want to test is visibility of tabs as you add/remove and ...
6 years, 6 months ago (2014-06-17 23:52:51 UTC) #4
sky
https://codereview.chromium.org/339923005/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/339923005/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc#newcode740 chrome/browser/ui/views/tabs/tab_strip.cc:740: if (stacked_layout_) On 2014/06/17 20:20:20, Peter Kasting wrote: > ...
6 years, 6 months ago (2014-06-17 23:53:13 UTC) #5
Peter Kasting
Fixed the existing unittest failure and added a new test. PTAL.
6 years, 6 months ago (2014-06-18 01:26:36 UTC) #6
sky
Nice, LGTM
6 years, 6 months ago (2014-06-18 03:21:28 UTC) #7
Peter Kasting
The CQ bit was checked by pkasting@chromium.org
6 years, 6 months ago (2014-06-18 04:49:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkasting@chromium.org/339923005/60001
6 years, 6 months ago (2014-06-18 04:51:15 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 10:56:38 UTC) #10
Message was sent while issue was closed.
Change committed as 278028

Powered by Google App Engine
This is Rietveld 408576698