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

Issue 2963023002: [stacked tabs] Fix stacking logic with 'open link in new tab' (Closed)

Created:
3 years, 5 months ago by tdanderson
Modified:
3 years, 5 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[stacked tabs] Fix stacking logic with 'open link in new tab' Currently when in stacked tab mode, using 'open link in new tab' can result in a stack forming to the left of the active tab. Prevent this from happening, and also do not adjust the position of the active tab to the left unless necessary in order to show all tabs between the active tab and the newly-opened tab (inclusive). BUG=737639 TEST=StackedTabStripLayoutTest.AddTab Review-Url: https://codereview.chromium.org/2963023002 Cr-Commit-Position: refs/heads/master@{#483375} Committed: https://chromium.googlesource.com/chromium/src/+/7aa4e8bf36efda4db554567ffc5b13f14540601e

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -15 lines) Patch
M chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc View 2 chunks +18 lines, -10 lines 2 comments Download
M chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc View 1 chunk +26 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
tdanderson
Peter, can you please take a look?
3 years, 5 months ago (2017-06-28 21:54:02 UTC) #4
Peter Kasting
LGTM https://codereview.chromium.org/2963023002/diff/1/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc File chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc (right): https://codereview.chromium.org/2963023002/diff/1/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc#newcode355 chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc:355: LayoutByTabOffsetAfter(active_index()); This now leaves only one caller of ...
3 years, 5 months ago (2017-06-28 22:04:33 UTC) #5
tdanderson
https://codereview.chromium.org/2963023002/diff/1/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc File chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc (right): https://codereview.chromium.org/2963023002/diff/1/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc#newcode355 chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc:355: LayoutByTabOffsetAfter(active_index()); On 2017/06/28 22:04:33, Peter Kasting wrote: > This ...
3 years, 5 months ago (2017-06-29 16:01:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963023002/1
3 years, 5 months ago (2017-06-29 16:01:29 UTC) #10
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 16:05:39 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7aa4e8bf36efda4db554567ffc5b...

Powered by Google App Engine
This is Rietveld 408576698