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

Issue 2918653002: Prevent gap when gesture-dragging in stacked tab mode (Closed)

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

Description

Prevent gap when gesture-dragging in stacked tab mode In stacked tab mode, if the active tab's x-position is maximal and there is a stacked tab to its left, gesture-dragging the active tab to the left will produce a gap in the tabstrip. Prevent this from happening by invoking AdjustStackedTabs() rather than ResetToIdealState(), as is done in the symmetric case of gesture-dragging to the right. BUG=454479 TEST=StackedTabStripLayoutTest.DragActiveTabExisting Review-Url: https://codereview.chromium.org/2918653002 Cr-Commit-Position: refs/heads/master@{#476448} Committed: https://chromium.googlesource.com/chromium/src/+/c6adb78933fa7fd7a0259ab6ff25620dd0a875f8

Patch Set 1 #

Patch Set 2 : added tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
tdanderson
Scott, can you please take a look?
3 years, 6 months ago (2017-05-31 21:06:56 UTC) #3
sky
This seems right. Could you add test coverage?
3 years, 6 months ago (2017-05-31 22:21:18 UTC) #7
tdanderson
Please take a look at Patch Set 2.
3 years, 6 months ago (2017-06-01 19:20:51 UTC) #9
sky
LGTM
3 years, 6 months ago (2017-06-01 21:52:37 UTC) #14
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/2918653002/20001
3 years, 6 months ago (2017-06-01 21:55:51 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 22:02:18 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c6adb78933fa7fd7a0259ab6ff25...

Powered by Google App Engine
This is Rietveld 408576698