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_TABS_TAB_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ |
6 #define CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ | 6 #define CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 | 92 |
93 // Returns true if the experimental tab audio mute feature is enabled. | 93 // Returns true if the experimental tab audio mute feature is enabled. |
94 bool IsTabAudioMutingFeatureEnabled(); | 94 bool IsTabAudioMutingFeatureEnabled(); |
95 | 95 |
96 // Returns true if audio mute can be activated/deactivated for the given | 96 // Returns true if audio mute can be activated/deactivated for the given |
97 // |contents|. | 97 // |contents|. |
98 bool CanToggleAudioMute(content::WebContents* contents); | 98 bool CanToggleAudioMute(content::WebContents* contents); |
99 | 99 |
100 // Indicates/Sets whether all audio output from |contents| is muted. | 100 // Indicates/Sets whether all audio output from |contents| is muted. |
101 bool IsTabAudioMuted(content::WebContents* contents); | 101 bool IsTabAudioMuted(content::WebContents* contents); |
102 void SetTabAudioMuted(content::WebContents* contents, bool mute); | 102 void SetTabAudioMuted(content::WebContents* contents, bool muted, const std::str ing& cause); |
miu
2014/12/05 23:46:48
Chromium style: Make sure to stay under 80 chars p
| |
103 | 103 |
104 // Returns true if the tabs at the |indices| in |tab_strip| are all muted. | 104 // Returns true if the tabs at the |indices| in |tab_strip| are all muted. |
105 bool AreAllTabsMuted(const TabStripModel& tab_strip, | 105 bool AreAllTabsMuted(const TabStripModel& tab_strip, |
106 const std::vector<int>& indices); | 106 const std::vector<int>& indices); |
107 | 107 |
108 } // namespace chrome | 108 } // namespace chrome |
109 | 109 |
110 #endif // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ | 110 #endif // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ |
OLD | NEW |