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

Side by Side Diff: chrome/browser/ui/tabs/tab_utils.h

Issue 757033005: Make tab audible and muted states and cause available for an extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698