Home | History | Annotate | Download | only in tabs
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_UI_TABS_TAB_UTILS_H_
      6 #define CHROME_BROWSER_UI_TABS_TAB_UTILS_H_
      7 
      8 namespace content{
      9 class WebContents;
     10 }  // namespace content
     11 
     12 namespace chrome {
     13 
     14 // Returns whether we should show a projecting favicon indicator for this tab.
     15 bool ShouldShowProjectingIndicator(content::WebContents* contents);
     16 
     17 // Returns whether we should show a recording favicon indicator for this tab.
     18 bool ShouldShowRecordingIndicator(content::WebContents* contents);
     19 
     20 // Returns whether the given |contents| is playing audio. We might choose to
     21 // show an audio favicon indicator for this tab.
     22 bool IsPlayingAudio(content::WebContents* contents);
     23 
     24 // Returns whether the given |contents| is capturing video.
     25 bool IsCapturingVideo(content::WebContents* contents);
     26 
     27 // Returns whether the given |contents| is capturing video.
     28 bool IsCapturingAudio(content::WebContents* contents);
     29 
     30 }  // namespace chrome
     31 
     32 #endif  // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_
     33