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

Unified Diff: chrome/browser/ui/tabs/tab_utils.h

Issue 893843007: Experiment to hide close buttons of inactive tabs when using touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/tabs/tab_utils.h
diff --git a/chrome/browser/ui/tabs/tab_utils.h b/chrome/browser/ui/tabs/tab_utils.h
index 4480a41609f149cbc48f01466975e4358718eaa5..5d0630ba4439251709a38347c70f019d4419c36e 100644
--- a/chrome/browser/ui/tabs/tab_utils.h
+++ b/chrome/browser/ui/tabs/tab_utils.h
@@ -46,16 +46,22 @@ namespace chrome {
// Pinned tab: Show only the media indicator, or only the favicon
// (TAB_MEDIA_STATE_NONE). Never show the close button.
bool ShouldTabShowFavicon(int capacity,
+ int width,
+ bool touch_used_last,
bool is_pinned_tab,
bool is_active_tab,
bool has_favicon,
TabMediaState media_state);
bool ShouldTabShowMediaIndicator(int capacity,
+ int width,
+ bool touch_used_last,
bool is_pinned_tab,
bool is_active_tab,
bool has_favicon,
TabMediaState media_state);
bool ShouldTabShowCloseButton(int capacity,
+ int width,
+ bool touch_used_last,
bool is_pinned_tab,
bool is_active_tab);

Powered by Google App Engine
This is Rietveld 408576698