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

Unified Diff: content/public/browser/web_contents.h

Issue 1848663002: bluetooth: Remove indicator only when there are no more devices connected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address jyasskin's comments 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index deb4cfda01733f9733757920e4d72d24b0ace27b..cb4b2df86e42991f61969fb0a2913314db40b998 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -353,13 +353,17 @@ class WebContents : public PageNavigator,
virtual void DecrementCapturerCount() = 0;
virtual int GetCapturerCount() const = 0;
+ // Call Increment when a frame connects to a Bluetooth device and Decrement
+ // when a connection is broken. IsConnectedToBluetoothDevice() then indicates
+ // whether any frame in the WebContents is connected to a Bluetooth Device.
+ virtual void IncrementBluetoothConnectedDeviceCount() = 0;
+ virtual void DecrementBluetoothConnectedDeviceCount() = 0;
+ virtual bool IsConnectedToBluetoothDevice() const = 0;
+
// Indicates/Sets whether all audio output from this WebContents is muted.
virtual bool IsAudioMuted() const = 0;
virtual void SetAudioMuted(bool mute) = 0;
- // Indicates/Sets wheter a WebContents is connected to a Bluetooth Device.
- virtual bool IsBluetoothDeviceConnected() const = 0;
- virtual void SetBluetoothDeviceConnected(bool connected) = 0;
// Indicates whether this tab should be considered crashed. The setter will
// also notify the delegate when the flag is changed.

Powered by Google App Engine
This is Rietveld 408576698