| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // |args| will be an empty list. | 54 // |args| will be an empty list. |
| 55 void FindDevicesCallback(const base::ListValue* args); | 55 void FindDevicesCallback(const base::ListValue* args); |
| 56 | 56 |
| 57 // Called when the user requests to connect to or disconnect from a Bluetooth | 57 // Called when the user requests to connect to or disconnect from a Bluetooth |
| 58 // device. | 58 // device. |
| 59 // |args| will be a list containing two or three arguments, the first argument | 59 // |args| will be a list containing two or three arguments, the first argument |
| 60 // is the device ID and the second is the requested action. If a third | 60 // is the device ID and the second is the requested action. If a third |
| 61 // argument is present, it is the passkey for pairing confirmation. | 61 // argument is present, it is the passkey for pairing confirmation. |
| 62 void UpdateDeviceCallback(const base::ListValue* args); | 62 void UpdateDeviceCallback(const base::ListValue* args); |
| 63 | 63 |
| 64 // Called when the "Add a device" dialog closes to stop the discovery |
| 65 // process. |
| 66 // |args| will be an empty list. |
| 67 void StopDiscoveryCallback(const base::ListValue* args); |
| 68 |
| 69 // Called when the list of paired devices is initialized in order to |
| 70 // populate the list. |
| 71 // |args| will be an empty list. |
| 72 void GetPairedDevicesCallback(const base::ListValue* args); |
| 73 |
| 64 // Sends a notification to the Web UI of the status of a Bluetooth device. | 74 // Sends a notification to the Web UI of the status of a Bluetooth device. |
| 65 // |device| is the Bluetooth device. | 75 // |device| is the Bluetooth device. |
| 66 // |params| is an optional set of parameters. | 76 // |params| is an optional set of parameters. |
| 67 void SendDeviceNotification(chromeos::BluetoothDevice* device, | 77 void SendDeviceNotification(chromeos::BluetoothDevice* device, |
| 68 base::DictionaryValue* params); | 78 base::DictionaryValue* params); |
| 69 | 79 |
| 70 // Displays a passkey for a device, requesting user confirmation that the | 80 // Displays a passkey for a device, requesting user confirmation that the |
| 71 // key matches an expected value (value displayed on a smartphone for | 81 // key matches an expected value (value displayed on a smartphone for |
| 72 // example). | 82 // example). |
| 73 // |device| is the Bluetooth device being paired. | 83 // |device| is the Bluetooth device being paired. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // The empty string represents "none". | 152 // The empty string represents "none". |
| 143 std::string default_adapter_id_; | 153 std::string default_adapter_id_; |
| 144 | 154 |
| 145 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 155 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
| 146 }; | 156 }; |
| 147 | 157 |
| 148 } // namespace options2 | 158 } // namespace options2 |
| 149 } // namespace chromeos | 159 } // namespace chromeos |
| 150 | 160 |
| 151 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_
H_ | 161 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_
H_ |
| OLD | NEW |