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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_controller.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: histograms.xml changed 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
7 7
8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" 8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h"
9 9
10 class Tab; 10 class Tab;
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 // Controller for tabs. 24 // Controller for tabs.
25 class TabController { 25 class TabController {
26 public: 26 public:
27 virtual const ui::ListSelectionModel& GetSelectionModel() = 0; 27 virtual const ui::ListSelectionModel& GetSelectionModel() = 0;
28 28
29 // Returns true if multiple selection is supported. 29 // Returns true if multiple selection is supported.
30 virtual bool SupportsMultipleSelection() = 0; 30 virtual bool SupportsMultipleSelection() = 0;
31 31
32 // Returns true if we should force the close button of the inactive tab 32 // Returns true if we should force the close buttons of the inactive tabs
33 // |tab| to be hidden. 33 // to be hidden.
34 virtual bool ShouldHideCloseButtonForInactiveTab(const Tab* tab) = 0; 34 virtual bool ShouldHideCloseButtonForInactiveTabs() = 0;
35 35
36 // Selects the tab. 36 // Selects the tab.
37 virtual void SelectTab(Tab* tab) = 0; 37 virtual void SelectTab(Tab* tab) = 0;
38 38
39 // Extends the selection from the anchor to |tab|. 39 // Extends the selection from the anchor to |tab|.
40 virtual void ExtendSelectionTo(Tab* tab) = 0; 40 virtual void ExtendSelectionTo(Tab* tab) = 0;
41 41
42 // Toggles whether |tab| is selected. 42 // Toggles whether |tab| is selected.
43 virtual void ToggleSelected(Tab* tab) = 0; 43 virtual void ToggleSelected(Tab* tab) = 0;
44 44
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Adds private information to the tab's accessibility state. 99 // Adds private information to the tab's accessibility state.
100 virtual void UpdateTabAccessibilityState(const Tab* tab, 100 virtual void UpdateTabAccessibilityState(const Tab* tab,
101 ui::AXViewState* state) = 0; 101 ui::AXViewState* state) = 0;
102 102
103 protected: 103 protected:
104 virtual ~TabController() {} 104 virtual ~TabController() {}
105 }; 105 };
106 106
107 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 107 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698