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 23 matching lines...) Expand all Loading... |
34 enum ConnectionError { | 34 enum ConnectionError { |
35 DEVICE_NOT_FOUND, | 35 DEVICE_NOT_FOUND, |
36 INCORRECT_PIN, | 36 INCORRECT_PIN, |
37 CONNECTION_TIMEOUT, | 37 CONNECTION_TIMEOUT, |
38 CONNECTION_REJECTED | 38 CONNECTION_REJECTED |
39 }; | 39 }; |
40 | 40 |
41 // OptionsPageUIHandler implementation. | 41 // OptionsPageUIHandler implementation. |
42 virtual void GetLocalizedValues( | 42 virtual void GetLocalizedValues( |
43 base::DictionaryValue* localized_strings) OVERRIDE; | 43 base::DictionaryValue* localized_strings) OVERRIDE; |
44 virtual void Initialize() OVERRIDE; | 44 virtual void InitializeHandler() OVERRIDE; |
45 virtual void RegisterMessages() OVERRIDE; | 45 virtual void RegisterMessages() OVERRIDE; |
46 | 46 |
47 // Called when the 'Enable bluetooth' checkbox value is changed. | 47 // Called when the 'Enable bluetooth' checkbox value is changed. |
48 // |args| will contain the checkbox checked state as a string | 48 // |args| will contain the checkbox checked state as a string |
49 // ("true" or "false"). | 49 // ("true" or "false"). |
50 void EnableChangeCallback(const base::ListValue* args); | 50 void EnableChangeCallback(const base::ListValue* args); |
51 | 51 |
52 // Called when the 'Find Devices' button is pressed from the Bluetooth | 52 // Called when the 'Find Devices' button is pressed from the Bluetooth |
53 // ssettings. | 53 // ssettings. |
54 // |args| will be an empty list. | 54 // |args| will be an empty list. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Default bluetooth adapter, used for all operations. Owned by this object. | 142 // Default bluetooth adapter, used for all operations. Owned by this object. |
143 scoped_ptr<BluetoothAdapter> adapter_; | 143 scoped_ptr<BluetoothAdapter> adapter_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 145 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace options2 | 148 } // namespace options2 |
149 } // namespace chromeos | 149 } // namespace chromeos |
150 | 150 |
151 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_
H_ | 151 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_
H_ |
OLD | NEW |