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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_controller.h

Issue 591963002: Tab audio mute control (views UI), behind a switch (off by default). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + add about:flags experiment Created 6 years, 2 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 26 matching lines...) Expand all
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
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_
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