Chromium Code Reviews| 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_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 void Connected(); | 173 void Connected(); |
| 174 | 174 |
| 175 // Called by device::BluetoothDevice in response to a failure to | 175 // Called by device::BluetoothDevice in response to a failure to |
| 176 // connect to the device with bluetooth address |address| due to an error | 176 // connect to the device with bluetooth address |address| due to an error |
| 177 // encoded in |error_code|. | 177 // encoded in |error_code|. |
| 178 void ConnectError(const std::string& address, | 178 void ConnectError(const std::string& address, |
| 179 device::BluetoothDevice::ConnectErrorCode error_code); | 179 device::BluetoothDevice::ConnectErrorCode error_code); |
| 180 | 180 |
| 181 // Called by device::BluetoothDevice in response to a failure to | 181 // Called by device::BluetoothDevice in response to a failure to |
| 182 // disconnect the device with bluetooth address |address|. | 182 // disconnect the device with bluetooth address |address|. |
| 183 void DisconnectError(const std::string& address); | 183 void DisconnectError(const std::string& address, |
| 184 const std::string& error_message); | |
| 184 | 185 |
| 185 // Called by device::BluetoothDevice in response to a failure to | 186 // Called by device::BluetoothDevice in response to a failure to |
| 186 // disconnect and unpair the device with bluetooth address |address|. | 187 // disconnect and unpair the device with bluetooth address |address|. |
| 187 void ForgetError(const std::string& address); | 188 void ForgetError(const std::string& address, |
| 189 const std::string& error_message); | |
|
keybuk
2014/03/27 20:20:07
Forget doesn't have an error_message parameter
rpaquay
2014/03/27 22:00:01
Done.
| |
| 188 | 190 |
| 189 // Called when the 'Enable bluetooth' checkbox value is changed. | 191 // Called when the 'Enable bluetooth' checkbox value is changed. |
| 190 // |args| will contain the checkbox checked state as a string | 192 // |args| will contain the checkbox checked state as a string |
| 191 // ("true" or "false"). | 193 // ("true" or "false"). |
| 192 void EnableChangeCallback(const base::ListValue* args); | 194 void EnableChangeCallback(const base::ListValue* args); |
| 193 | 195 |
| 194 // Called when the 'Find Devices' button is pressed from the Bluetooth | 196 // Called when the 'Find Devices' button is pressed from the Bluetooth |
| 195 // ssettings. | 197 // ssettings. |
| 196 // |args| will be an empty list. | 198 // |args| will be an empty list. |
| 197 void FindDevicesCallback(const base::ListValue* args); | 199 void FindDevicesCallback(const base::ListValue* args); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 // than this object does. | 239 // than this object does. |
| 238 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; | 240 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; |
| 239 | 241 |
| 240 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 242 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 } // namespace options | 245 } // namespace options |
| 244 } // namespace chromeos | 246 } // namespace chromeos |
| 245 | 247 |
| 246 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 248 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
| OLD | NEW |