OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 void ChromeExtensionBluetoothChooser::SetAdapterPresence( | 27 void ChromeExtensionBluetoothChooser::SetAdapterPresence( |
28 AdapterPresence presence) { | 28 AdapterPresence presence) { |
29 bluetooth_chooser_controller_->OnAdapterPresenceChanged(presence); | 29 bluetooth_chooser_controller_->OnAdapterPresenceChanged(presence); |
30 } | 30 } |
31 | 31 |
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::AddDevice( | 36 void ChromeExtensionBluetoothChooser::AddOrUpdateDevice( |
37 const std::string& device_id, | 37 const std::string& device_id, |
38 const base::string16& device_name) { | 38 const base::string16& device_name) { |
39 bluetooth_chooser_controller_->AddDevice(device_id, device_name); | 39 bluetooth_chooser_controller_->AddOrUpdateDevice(device_id, device_name); |
40 } | 40 } |
41 | 41 |
42 void ChromeExtensionBluetoothChooser::RemoveDevice( | 42 void ChromeExtensionBluetoothChooser::RemoveDevice( |
43 const std::string& device_id) { | 43 const std::string& device_id) { |
44 bluetooth_chooser_controller_->RemoveDevice(device_id); | 44 bluetooth_chooser_controller_->RemoveDevice(device_id); |
45 } | 45 } |
OLD | NEW |