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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 983853002: Hide close buttons of inactive stacked tabs by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: force tab layout Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_strip.h
diff --git a/chrome/browser/ui/views/tabs/tab_strip.h b/chrome/browser/ui/views/tabs/tab_strip.h
index 8bef5ae4a94149e6d6ba481964afe5db17c53f8f..2c95ca5c703a81cfbdc7f54583d53be0f4d09366 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.h
+++ b/chrome/browser/ui/views/tabs/tab_strip.h
@@ -213,7 +213,7 @@ class TabStrip : public views::View,
// TabController overrides:
const ui::ListSelectionModel& GetSelectionModel() override;
bool SupportsMultipleSelection() override;
- bool ShouldHideCloseButtonForInactiveTab(const Tab* tab) override;
+ bool ShouldHideCloseButtonForInactiveTabs() override;
void SelectTab(Tab* tab) override;
void ExtendSelectionTo(Tab* tab) override;
void ToggleSelected(Tab* tab) override;
@@ -271,10 +271,11 @@ class TabStrip : public views::View,
friend class TabDragController;
friend class TabDragControllerTest;
+ friend class TabStripTest;
FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest);
friend class TabStripTest;
FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked);
- FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton);
+ FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked);
// Used during a drop session of a url. Tracks the position of the drop as
// well as a window used to highlight where the drop occurs.

Powered by Google App Engine
This is Rietveld 408576698