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

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

Issue 1857033003: Implement tab indicator for WebUSB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't try to update tab indicator on Android. 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
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 15 matching lines...) Expand all
26 26
27 // Alert state for a tab. In reality, more than one of these may apply. See 27 // Alert state for a tab. In reality, more than one of these may apply. See
28 // comments for GetTabAlertStateForContents() below. 28 // comments for GetTabAlertStateForContents() below.
29 enum class TabAlertState { 29 enum class TabAlertState {
30 NONE, 30 NONE,
31 MEDIA_RECORDING, // Audio/Video being recorded, consumed by tab. 31 MEDIA_RECORDING, // Audio/Video being recorded, consumed by tab.
32 TAB_CAPTURING, // Tab contents being captured. 32 TAB_CAPTURING, // Tab contents being captured.
33 AUDIO_PLAYING, // Audible audio is playing from the tab. 33 AUDIO_PLAYING, // Audible audio is playing from the tab.
34 AUDIO_MUTING, // Tab audio is being muted. 34 AUDIO_MUTING, // Tab audio is being muted.
35 BLUETOOTH_CONNECTED, // Tab is connected to a BT Device. 35 BLUETOOTH_CONNECTED, // Tab is connected to a BT Device.
36 USB_CONNECTED, // Tab is connected to a USB device.
36 }; 37 };
37 38
38 enum class TabMutedReason { 39 enum class TabMutedReason {
39 NONE, // The tab has never been muted or unmuted. 40 NONE, // The tab has never been muted or unmuted.
40 CONTEXT_MENU, // Mute/Unmute chosen from tab context menu. 41 CONTEXT_MENU, // Mute/Unmute chosen from tab context menu.
41 AUDIO_INDICATOR, // Mute toggled via tab-strip audio icon. 42 AUDIO_INDICATOR, // Mute toggled via tab-strip audio icon.
42 MEDIA_CAPTURE, // Media recording/capture was started. 43 MEDIA_CAPTURE, // Media recording/capture was started.
43 EXTENSION, // Mute state changed via extension API. 44 EXTENSION, // Mute state changed via extension API.
44 }; 45 };
45 46
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // string is returned. 141 // string is returned.
141 const std::string& GetExtensionIdForMutedTab(content::WebContents* contents); 142 const std::string& GetExtensionIdForMutedTab(content::WebContents* contents);
142 143
143 // Returns true if the tabs at the |indices| in |tab_strip| are all muted. 144 // Returns true if the tabs at the |indices| in |tab_strip| are all muted.
144 bool AreAllTabsMuted(const TabStripModel& tab_strip, 145 bool AreAllTabsMuted(const TabStripModel& tab_strip,
145 const std::vector<int>& indices); 146 const std::vector<int>& indices);
146 147
147 } // namespace chrome 148 } // namespace chrome
148 149
149 #endif // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_ 150 #endif // CHROME_BROWSER_UI_TABS_TAB_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698