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

Issue 983853002: Hide close buttons of inactive stacked tabs by default (Closed)

Created:
5 years, 9 months ago by tdanderson
Modified:
5 years, 9 months ago
Reviewers:
Mark P, sky, no sievers
CC:
chromium-reviews, tfarina, jam, asvitkine+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide close buttons of inactive stacked tabs by default Hide the close buttons of inactive tabs when the tabstrip is in stacked mode (i.e., when touch is used to interact with the tabstrip and the width of the tabs falls below our minimum width threshold for touch). Introduce the flag --disable-hide-inactive-stacked-tab-close-buttons in order to disable this behaviour if needed. BUG=455312 TEST=TabStripTest.TabCloseButtonVisibilityWhenStacked Committed: https://crrev.com/5c0b95bd16c16a474ae3e5fd91c090f2e4851452 Cr-Commit-Position: refs/heads/master@{#320346}

Patch Set 1 #

Total comments: 2

Patch Set 2 : new tests #

Total comments: 5

Patch Set 3 : check only |touch_layout_| #

Total comments: 2

Patch Set 4 : test in progress #

Total comments: 7

Patch Set 5 : force tab layout #

Total comments: 2

Patch Set 6 : force paint instead of layout #

Total comments: 4

Patch Set 7 : histograms.xml changed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -153 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -13 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 2 chunks +4 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 1 chunk +4 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_unittest.cc View 1 2 3 4 5 7 chunks +80 lines, -90 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
tdanderson
Hi Scott, this has been given UX approval. Can you please take a look? https://codereview.chromium.org/983853002/diff/1/tools/metrics/histograms/histograms.xml ...
5 years, 9 months ago (2015-03-05 19:31:44 UTC) #2
tdanderson
On 2015/03/05 19:31:44, tdanderson wrote: > Hi Scott, this has been given UX approval. Can ...
5 years, 9 months ago (2015-03-05 21:00:59 UTC) #3
tdanderson
Hi Scott, can you please take a look? https://chromiumcodereview.appspot.com/983853002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://chromiumcodereview.appspot.com/983853002/diff/1/tools/metrics/histograms/histograms.xml#oldcode52558 tools/metrics/histograms/histograms.xml:52558: - ...
5 years, 9 months ago (2015-03-06 19:59:21 UTC) #4
sky
https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode978 chrome/browser/ui/views/tabs/tab_strip.cc:978: if (!stacked_layout_ || tab->width() > Tab::GetTouchWidth()) Don't you just ...
5 years, 9 months ago (2015-03-06 23:28:33 UTC) #5
tdanderson
Scott, can you PTAL? https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode978 chrome/browser/ui/views/tabs/tab_strip.cc:978: if (!stacked_layout_ || tab->width() > ...
5 years, 9 months ago (2015-03-09 17:30:53 UTC) #6
sky
LGTM
5 years, 9 months ago (2015-03-09 18:06:48 UTC) #7
tdanderson
On 2015/03/09 18:06:48, sky wrote: > LGTM Thanks, but I'm concerned that I'm not properly ...
5 years, 9 months ago (2015-03-09 18:16:02 UTC) #8
sky
Going back to not lgtm until sorted. https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc File chrome/browser/ui/views/tabs/tab_strip_unittest.cc (right): https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc#newcode420 chrome/browser/ui/views/tabs/tab_strip_unittest.cc:420: TEST_F(TabStripTest, TabCloseButtonVisibilityWhenStacked) ...
5 years, 9 months ago (2015-03-09 19:55:59 UTC) #9
tdanderson
Hi Scott, can you please take a look at my comments below? https://chromiumcodereview.appspot.com/983853002/diff/20001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc File chrome/browser/ui/views/tabs/tab_strip_unittest.cc ...
5 years, 9 months ago (2015-03-11 18:01:39 UTC) #10
sky
https://chromiumcodereview.appspot.com/983853002/diff/60001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc File chrome/browser/ui/views/tabs/tab_strip_unittest.cc (right): https://chromiumcodereview.appspot.com/983853002/diff/60001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc#newcode448 chrome/browser/ui/views/tabs/tab_strip_unittest.cc:448: Tab* tab3 = tab_strip_->tab_at(3); I think you want an ...
5 years, 9 months ago (2015-03-11 18:20:14 UTC) #11
tdanderson
Thanks for the feedback. Is the latest patchset what you had in mind? https://chromiumcodereview.appspot.com/983853002/diff/60001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc File ...
5 years, 9 months ago (2015-03-11 19:30:13 UTC) #12
sky
https://chromiumcodereview.appspot.com/983853002/diff/80001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc File chrome/browser/ui/views/tabs/tab_strip_unittest.cc (right): https://chromiumcodereview.appspot.com/983853002/diff/80001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc#newcode128 chrome/browser/ui/views/tabs/tab_strip_unittest.cc:128: void ForceLayoutOfAllTabs() { You shouldn't have to do this ...
5 years, 9 months ago (2015-03-11 19:55:16 UTC) #13
sky
LGTM with a better comment.
5 years, 9 months ago (2015-03-11 20:26:45 UTC) #14
tdanderson
mpearson@chromium.org: Can you please review changes in tools/ ? sievers@chromium.org: Can you please review changes ...
5 years, 9 months ago (2015-03-11 21:10:52 UTC) #16
no sievers
content lgtm
5 years, 9 months ago (2015-03-11 21:28:03 UTC) #17
sky
SLGTM
5 years, 9 months ago (2015-03-11 21:44:36 UTC) #18
Mark P
https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml#oldcode52695 tools/metrics/histograms/histograms.xml:52695: - <int value="412957264" label="tab-close-buttons-hidden-with-touch"/> Please do not delete entries ...
5 years, 9 months ago (2015-03-11 22:25:10 UTC) #19
tdanderson
https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml#oldcode52695 tools/metrics/histograms/histograms.xml:52695: - <int value="412957264" label="tab-close-buttons-hidden-with-touch"/> On 2015/03/11 22:25:10, Mark P ...
5 years, 9 months ago (2015-03-11 23:37:38 UTC) #20
Mark P
https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml#oldcode52695 tools/metrics/histograms/histograms.xml:52695: - <int value="412957264" label="tab-close-buttons-hidden-with-touch"/> On 2015/03/11 23:37:37, tdanderson wrote: ...
5 years, 9 months ago (2015-03-11 23:42:46 UTC) #21
tdanderson
https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://chromiumcodereview.appspot.com/983853002/diff/100001/tools/metrics/histograms/histograms.xml#oldcode52695 tools/metrics/histograms/histograms.xml:52695: - <int value="412957264" label="tab-close-buttons-hidden-with-touch"/> On 2015/03/11 23:42:46, Mark P ...
5 years, 9 months ago (2015-03-11 23:53:50 UTC) #22
Mark P
histograms.xml lgtm
5 years, 9 months ago (2015-03-12 16:31:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/983853002/120001
5 years, 9 months ago (2015-03-12 17:54:03 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-12 19:41:06 UTC) #27
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 19:41:59 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5c0b95bd16c16a474ae3e5fd91c090f2e4851452
Cr-Commit-Position: refs/heads/master@{#320346}

Powered by Google App Engine
This is Rietveld 408576698