| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SYSTEM_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" | 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // |args| will contain the checkbox checked state as a string | 28 // |args| will contain the checkbox checked state as a string |
| 29 // ("true" or "false"). | 29 // ("true" or "false"). |
| 30 void AccessibilityChangeCallback(const base::ListValue* args); | 30 void AccessibilityChangeCallback(const base::ListValue* args); |
| 31 | 31 |
| 32 // Called when the System configuration screen is used to adjust | 32 // Called when the System configuration screen is used to adjust |
| 33 // the screen brightness. | 33 // the screen brightness. |
| 34 // |args| will be an empty list. | 34 // |args| will be an empty list. |
| 35 void DecreaseScreenBrightnessCallback(const base::ListValue* args); | 35 void DecreaseScreenBrightnessCallback(const base::ListValue* args); |
| 36 void IncreaseScreenBrightnessCallback(const base::ListValue* args); | 36 void IncreaseScreenBrightnessCallback(const base::ListValue* args); |
| 37 | 37 |
| 38 // Called when the 'Enable bluetooth' checkbox value is changed. | |
| 39 // |args| will contain the checkbox checked state as a string | |
| 40 // ("true" or "false"). | |
| 41 void BluetoothEnableChangeCallback(const base::ListValue* args); | |
| 42 | |
| 43 // Called when the 'Find Devices' button is pressed from the | |
| 44 // Bluetooth settings. | |
| 45 // |args| will contain the list of devices currently connected | |
| 46 // devices according to the System options page. | |
| 47 void FindBluetoothDevicesCallback(const base::ListValue* args); | |
| 48 | |
| 49 // Sends a notification to the Web UI of the status of a bluetooth device. | |
| 50 // |device| is the decription of the device. The supported dictionary keys | |
| 51 // for device are "deviceName", "deviceId", "deviceType" and "deviceStatus". | |
| 52 void BluetoothDeviceNotification(const base::DictionaryValue& device); | |
| 53 | |
| 54 private: | 38 private: |
| 55 // Simulates extracting a list of available bluetooth devices. | |
| 56 // Called when emulating ChromeOS from a desktop environment. | |
| 57 void GenerateFakeDeviceList(); | |
| 58 | |
| 59 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); | 39 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); |
| 60 }; | 40 }; |
| 61 | 41 |
| 62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | 42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
| OLD | NEW |