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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 enum ConnectionError { | 32 enum ConnectionError { |
33 DEVICE_NOT_FOUND, | 33 DEVICE_NOT_FOUND, |
34 INCORRECT_PIN, | 34 INCORRECT_PIN, |
35 CONNECTION_TIMEOUT, | 35 CONNECTION_TIMEOUT, |
36 CONNECTION_REJECTED | 36 CONNECTION_REJECTED |
37 }; | 37 }; |
38 | 38 |
39 // OptionsPageUIHandler implementation. | 39 // OptionsPageUIHandler implementation. |
40 virtual void GetLocalizedValues( | 40 virtual void GetLocalizedValues( |
41 base::DictionaryValue* localized_strings) OVERRIDE; | 41 base::DictionaryValue* localized_strings) OVERRIDE; |
42 virtual void Initialize() OVERRIDE; | 42 virtual void InitializeHandler() OVERRIDE; |
43 virtual void RegisterMessages() OVERRIDE; | 43 virtual void RegisterMessages() OVERRIDE; |
44 | 44 |
45 // Called when the 'Enable bluetooth' checkbox value is changed. | 45 // Called when the 'Enable bluetooth' checkbox value is changed. |
46 // |args| will contain the checkbox checked state as a string | 46 // |args| will contain the checkbox checked state as a string |
47 // ("true" or "false"). | 47 // ("true" or "false"). |
48 void EnableChangeCallback(const base::ListValue* args); | 48 void EnableChangeCallback(const base::ListValue* args); |
49 | 49 |
50 // Called when the 'Find Devices' button is pressed from the Bluetooth | 50 // Called when the 'Find Devices' button is pressed from the Bluetooth |
51 // ssettings. | 51 // ssettings. |
52 // |args| will be an empty list. | 52 // |args| will be an empty list. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 // Default bluetooth adapter, used for all operations. Owned by this object. | 117 // Default bluetooth adapter, used for all operations. Owned by this object. |
118 scoped_ptr<BluetoothAdapter> adapter_; | 118 scoped_ptr<BluetoothAdapter> adapter_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 120 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace chromeos | 123 } // namespace chromeos |
124 | 124 |
125 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 125 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
OLD | NEW |