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

Side by Side Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h

Issue 2245603003: Add signal strength indicator icon to WebBluetooth chooser on non-Mac desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address more comments Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BLUETOOTH_BLUETOOTH_CHOOSER_DESKTOP_H_ 5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_DESKTOP_H_
6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_DESKTOP_H_ 6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_DESKTOP_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/bluetooth_chooser.h" 9 #include "content/public/browser/bluetooth_chooser.h"
10 10
11 class BluetoothChooserController; 11 class BluetoothChooserController;
12 12
13 // Represents a Bluetooth chooser to ask the user to select a Bluetooth 13 // Represents a Bluetooth chooser to ask the user to select a Bluetooth
14 // device from a list of options. This implementation is for desktop. 14 // device from a list of options. This implementation is for desktop.
15 // BluetoothChooserAndroid implements the mobile part. 15 // BluetoothChooserAndroid implements the mobile part.
16 class BluetoothChooserDesktop : public content::BluetoothChooser { 16 class BluetoothChooserDesktop : public content::BluetoothChooser {
17 public: 17 public:
18 explicit BluetoothChooserDesktop( 18 explicit BluetoothChooserDesktop(
19 BluetoothChooserController* bluetooth_chooser_controller); 19 BluetoothChooserController* bluetooth_chooser_controller);
20 ~BluetoothChooserDesktop() override; 20 ~BluetoothChooserDesktop() override;
21 21
22 // BluetoothChooser: 22 // BluetoothChooser:
23 void SetAdapterPresence(AdapterPresence presence) override; 23 void SetAdapterPresence(AdapterPresence presence) override;
24 void ShowDiscoveryState(DiscoveryState state) override; 24 void ShowDiscoveryState(DiscoveryState state) override;
25 void AddOrUpdateDevice(const std::string& device_id, 25 void AddOrUpdateDevice(const std::string& device_id,
26 bool should_update_name, 26 bool should_update_name,
27 const base::string16& device_name, 27 const base::string16& device_name,
28 bool is_gatt_connected, 28 bool is_gatt_connected,
29 bool is_paired, 29 bool is_paired,
30 const int8_t* rssi) override; 30 int signal_strength_level) override;
31 void RemoveDevice(const std::string& device_id) override; 31 void RemoveDevice(const std::string& device_id) override;
32 32
33 private: 33 private:
34 // Weak. ChooserContentView[Cocoa] owns it. 34 // Weak. ChooserContentView[Cocoa] owns it.
35 BluetoothChooserController* bluetooth_chooser_controller_; 35 BluetoothChooserController* bluetooth_chooser_controller_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserDesktop); 37 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserDesktop);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_DESKTOP_H_ 40 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_DESKTOP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc ('k') | chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698