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

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 96a3feb63b6dbe947fb39dcc272eeb372bdedfe7..73df20bca58ba03a7dcbe9134e3c73e16533bede 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
Jeffrey Yasskin 2016/04/06 23:05:13 Maybe "Call Increment when a frame connects to a B
ortuno 2016/04/07 15:09:20 Done.
+ // 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