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

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

Issue 1746333002: bluetooth: Show tab indicator when BT device is connected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: mute -> connected Created 4 years, 8 months 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
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/tabs/tab_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/tabs/tab_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698