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 20 matching lines...) Expand all Loading... |
31 BluetoothOptionsHandler(); | 31 BluetoothOptionsHandler(); |
32 virtual ~BluetoothOptionsHandler(); | 32 virtual ~BluetoothOptionsHandler(); |
33 | 33 |
34 // OptionsPageUIHandler implementation. | 34 // OptionsPageUIHandler implementation. |
35 virtual void GetLocalizedValues( | 35 virtual void GetLocalizedValues( |
36 base::DictionaryValue* localized_strings) OVERRIDE; | 36 base::DictionaryValue* localized_strings) OVERRIDE; |
37 virtual void RegisterMessages() OVERRIDE; | 37 virtual void RegisterMessages() OVERRIDE; |
38 virtual void InitializeHandler() OVERRIDE; | 38 virtual void InitializeHandler() OVERRIDE; |
39 virtual void InitializePage() OVERRIDE; | 39 virtual void InitializePage() OVERRIDE; |
40 | 40 |
| 41 void InitializeAdapter(scoped_refptr<device::BluetoothAdapter> adapter); |
| 42 |
41 // Sends a notification to the Web UI of the status of a Bluetooth device. | 43 // Sends a notification to the Web UI of the status of a Bluetooth device. |
42 // |device| is the Bluetooth device. | 44 // |device| is the Bluetooth device. |
43 // |params| is an optional set of parameters. | 45 // |params| is an optional set of parameters. |
44 void SendDeviceNotification(const device::BluetoothDevice* device, | 46 void SendDeviceNotification(const device::BluetoothDevice* device, |
45 base::DictionaryValue* params); | 47 base::DictionaryValue* params); |
46 | 48 |
47 // device::BluetoothDevice::PairingDelegate override. | 49 // device::BluetoothDevice::PairingDelegate override. |
48 // | 50 // |
49 // This method will be called when the Bluetooth daemon requires a | 51 // This method will be called when the Bluetooth daemon requires a |
50 // PIN Code for authentication of the device |device|, the UI will display | 52 // PIN Code for authentication of the device |device|, the UI will display |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // than this object does. | 195 // than this object does. |
194 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; | 196 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; |
195 | 197 |
196 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 198 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
197 }; | 199 }; |
198 | 200 |
199 } // namespace options | 201 } // namespace options |
200 } // namespace chromeos | 202 } // namespace chromeos |
201 | 203 |
202 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 204 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
OLD | NEW |