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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 } // namespace gfx | 25 } // namespace gfx |
26 | 26 |
27 // Media state for a tab. In reality, more than one of these may apply. See | 27 // Media state for a tab. In reality, more than one of these may apply. See |
28 // comments for GetTabMediaStateForContents() below. | 28 // comments for GetTabMediaStateForContents() below. |
29 enum TabMediaState { | 29 enum TabMediaState { |
30 TAB_MEDIA_STATE_NONE, | 30 TAB_MEDIA_STATE_NONE, |
31 TAB_MEDIA_STATE_RECORDING, // Audio/Video being recorded, consumed by tab. | 31 TAB_MEDIA_STATE_RECORDING, // Audio/Video being recorded, consumed by tab. |
32 TAB_MEDIA_STATE_CAPTURING, // Tab contents being captured. | 32 TAB_MEDIA_STATE_CAPTURING, // Tab contents being captured. |
33 TAB_MEDIA_STATE_AUDIO_PLAYING, // Audible audio is playing from the tab. | 33 TAB_MEDIA_STATE_AUDIO_PLAYING, // Audible audio is playing from the tab. |
34 TAB_MEDIA_STATE_AUDIO_MUTING, // Tab audio is being muted. | 34 TAB_MEDIA_STATE_AUDIO_MUTING, // Tab audio is being muted. |
| 35 TAB_MEDIA_STATE_BLUETOOTH_CONNECTED, // Tab is connected to a BT Device. |
35 }; | 36 }; |
36 | 37 |
37 enum TabMutedReason { | 38 enum TabMutedReason { |
38 TAB_MUTED_REASON_NONE, // The tab has never been muted or unmuted. | 39 TAB_MUTED_REASON_NONE, // The tab has never been muted or unmuted. |
39 TAB_MUTED_REASON_CONTEXT_MENU, // Mute/Unmute chosen from tab context menu. | 40 TAB_MUTED_REASON_CONTEXT_MENU, // Mute/Unmute chosen from tab context menu. |
40 TAB_MUTED_REASON_AUDIO_INDICATOR, // Mute toggled via tab-strip audio icon. | 41 TAB_MUTED_REASON_AUDIO_INDICATOR, // Mute toggled via tab-strip audio icon. |
41 TAB_MUTED_REASON_MEDIA_CAPTURE, // Media recording/capture was started. | 42 TAB_MUTED_REASON_MEDIA_CAPTURE, // Media recording/capture was started. |
42 TAB_MUTED_REASON_EXTENSION, // Mute state changed via extension API. | 43 TAB_MUTED_REASON_EXTENSION, // Mute state changed via extension API. |
43 }; | 44 }; |
44 | 45 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // string is returned. | 140 // string is returned. |
140 const std::string& GetExtensionIdForMutedTab(content::WebContents* contents); | 141 const std::string& GetExtensionIdForMutedTab(content::WebContents* contents); |
141 | 142 |
142 // Returns true if the tabs at the |indices| in |tab_strip| are all muted. | 143 // Returns true if the tabs at the |indices| in |tab_strip| are all muted. |
143 bool AreAllTabsMuted(const TabStripModel& tab_strip, | 144 bool AreAllTabsMuted(const TabStripModel& tab_strip, |
144 const std::vector<int>& indices); | 145 const std::vector<int>& indices); |
145 | 146 |
146 } // namespace chrome | 147 } // namespace chrome |
147 | 148 |
148 #endif // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ | 149 #endif // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ |
OLD | NEW |