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

Unified Diff: chrome/browser/ui/views/tabs/tab_controller.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/views/tabs/tab_controller.h
diff --git a/chrome/browser/ui/views/tabs/tab_controller.h b/chrome/browser/ui/views/tabs/tab_controller.h
index ea5085b3412094ece64dd2a6d0a78a593ee6647f..327d1147c745a3f6c4eb3b9fa219bdf4a5331a63 100644
--- a/chrome/browser/ui/views/tabs/tab_controller.h
+++ b/chrome/browser/ui/views/tabs/tab_controller.h
@@ -29,6 +29,10 @@ class TabController {
// Returns true if multiple selection is supported.
virtual bool SupportsMultipleSelection() = 0;
+ // Returns true if the last input type used for this controller was
+ // touch (rather than mouse).
+ virtual bool TouchWasUsedAsLastInput() = 0;
tdanderson 2015/02/06 20:34:33 It seems wrong to add something like this to TabCo
sky 2015/02/07 00:09:39 Agreed. Maybe this should be ShouldShowCloseButton
tdanderson 2015/02/10 18:52:17 Done.
+
// Selects the tab.
virtual void SelectTab(Tab* tab) = 0;

Powered by Google App Engine
This is Rietveld 408576698