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

Unified 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: adding owners (sky for chrome/browser/ui/tabs/tab_strip_model.cc, jam for changes in content/public… 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model.cc ('k') | chrome/browser/ui/tabs/tab_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tabs/tab_utils.h
diff --git a/chrome/browser/ui/tabs/tab_utils.h b/chrome/browser/ui/tabs/tab_utils.h
index 4480a41609f149cbc48f01466975e4358718eaa5..dcf28035f004ece4c5526af0e32991cb75fc8a5a 100644
--- a/chrome/browser/ui/tabs/tab_utils.h
+++ b/chrome/browser/ui/tabs/tab_utils.h
@@ -33,6 +33,8 @@ enum TabMediaState {
namespace chrome {
+const char kUserMuteToggleCause[] = "user";
miu 2014/12/09 01:56:24 You should only declare the constant here: cons
sky 2014/12/09 16:37:45 Is there a reason this is a string and not an enum
+
// Logic to determine which components (i.e., close button, favicon, and media
// indicator) of a tab should be shown, given current state. |capacity|
// specifies how many components can be shown, given available tab width.
@@ -99,7 +101,9 @@ bool CanToggleAudioMute(content::WebContents* contents);
// Indicates/Sets whether all audio output from |contents| is muted.
bool IsTabAudioMuted(content::WebContents* contents);
-void SetTabAudioMuted(content::WebContents* contents, bool mute);
+void SetTabAudioMuted(content::WebContents* contents,
+ bool muted,
+ const std::string& cause);
// Returns true if the tabs at the |indices| in |tab_strip| are all muted.
bool AreAllTabsMuted(const TabStripModel& tab_strip,
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model.cc ('k') | chrome/browser/ui/tabs/tab_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698