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

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: Ref count connections Created 4 years, 9 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 a308c009f3010874e4000a21480a9ae7094d55cc..ea92d30bb7e1a365dda83cbc0bc6f7393ce25468 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;
+ // Indicates whether the WebContents is connected to a Bluetooth Device.
+ // Increment calls must be balanced with an equivalent number of
+ // decrement calls.
+ 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