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

Side by Side Diff: chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc

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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.h" 5 #include "chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.h"
6 6
7 #include "chrome/browser/extensions/chrome_extension_chooser_dialog.h" 7 #include "chrome/browser/extensions/chrome_extension_chooser_dialog.h"
8 #include "chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h" 8 #include "chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
(...skipping 21 matching lines...) Expand all
32 void ChromeExtensionBluetoothChooser::ShowDiscoveryState(DiscoveryState state) { 32 void ChromeExtensionBluetoothChooser::ShowDiscoveryState(DiscoveryState state) {
33 bluetooth_chooser_controller_->OnDiscoveryStateChanged(state); 33 bluetooth_chooser_controller_->OnDiscoveryStateChanged(state);
34 } 34 }
35 35
36 void ChromeExtensionBluetoothChooser::AddOrUpdateDevice( 36 void ChromeExtensionBluetoothChooser::AddOrUpdateDevice(
37 const std::string& device_id, 37 const std::string& device_id,
38 bool should_update_name, 38 bool should_update_name,
39 const base::string16& device_name, 39 const base::string16& device_name,
40 bool is_gatt_connected, 40 bool is_gatt_connected,
41 bool is_paired, 41 bool is_paired,
42 const int8_t* rssi) { 42 int signal_strength_level) {
43 bluetooth_chooser_controller_->AddOrUpdateDevice( 43 bluetooth_chooser_controller_->AddOrUpdateDevice(
44 device_id, should_update_name, device_name, is_gatt_connected, is_paired, 44 device_id, should_update_name, device_name, is_gatt_connected, is_paired,
45 rssi); 45 signal_strength_level);
46 } 46 }
47 47
48 void ChromeExtensionBluetoothChooser::RemoveDevice( 48 void ChromeExtensionBluetoothChooser::RemoveDevice(
49 const std::string& device_id) { 49 const std::string& device_id) {
50 bluetooth_chooser_controller_->RemoveDevice(device_id); 50 bluetooth_chooser_controller_->RemoveDevice(device_id);
51 } 51 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.h ('k') | chrome/browser/ui/views/chooser_content_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698