OLD | NEW |
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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // Toggles whether |tab| is selected. | 38 // Toggles whether |tab| is selected. |
39 virtual void ToggleSelected(Tab* tab) = 0; | 39 virtual void ToggleSelected(Tab* tab) = 0; |
40 | 40 |
41 // Adds the selection from the anchor to |tab|. | 41 // Adds the selection from the anchor to |tab|. |
42 virtual void AddSelectionFromAnchorTo(Tab* tab) = 0; | 42 virtual void AddSelectionFromAnchorTo(Tab* tab) = 0; |
43 | 43 |
44 // Closes the tab. | 44 // Closes the tab. |
45 virtual void CloseTab(Tab* tab, CloseTabSource source) = 0; | 45 virtual void CloseTab(Tab* tab, CloseTabSource source) = 0; |
46 | 46 |
| 47 // Toggles whether tab-wide audio muting is active. |
| 48 virtual void ToggleTabAudioMute(Tab* tab) = 0; |
| 49 |
47 // Shows a context menu for the tab at the specified point in screen coords. | 50 // Shows a context menu for the tab at the specified point in screen coords. |
48 virtual void ShowContextMenuForTab(Tab* tab, | 51 virtual void ShowContextMenuForTab(Tab* tab, |
49 const gfx::Point& p, | 52 const gfx::Point& p, |
50 ui::MenuSourceType source_type) = 0; | 53 ui::MenuSourceType source_type) = 0; |
51 | 54 |
52 // Returns true if |tab| is the active tab. The active tab is the one whose | 55 // Returns true if |tab| is the active tab. The active tab is the one whose |
53 // content is shown in the browser. | 56 // content is shown in the browser. |
54 virtual bool IsActiveTab(const Tab* tab) const = 0; | 57 virtual bool IsActiveTab(const Tab* tab) const = 0; |
55 | 58 |
56 // Returns true if the specified Tab is selected. | 59 // Returns true if the specified Tab is selected. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 94 |
92 // Adds private information to the tab's accessibility state. | 95 // Adds private information to the tab's accessibility state. |
93 virtual void UpdateTabAccessibilityState(const Tab* tab, | 96 virtual void UpdateTabAccessibilityState(const Tab* tab, |
94 ui::AXViewState* state) = 0; | 97 ui::AXViewState* state) = 0; |
95 | 98 |
96 protected: | 99 protected: |
97 virtual ~TabController() {} | 100 virtual ~TabController() {} |
98 }; | 101 }; |
99 | 102 |
100 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 103 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
OLD | NEW |