Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3912)

Unified Diff: chrome/browser/ui/webui/options/chromeos/system_options_handler.h

Issue 8137003: Add display of available bluetooth devices, and mechanism for retrieving the list. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add opacity transition animation for the Bluetooth scanning indicator. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/system_options_handler.h
diff --git a/chrome/browser/ui/webui/options/chromeos/system_options_handler.h b/chrome/browser/ui/webui/options/chromeos/system_options_handler.h
index 61d451c9d0a0957cb871b92289ac2f33bd6082ea..a0927c67c8c6ebc1e7da95596770e64db37016e7 100644
--- a/chrome/browser/ui/webui/options/chromeos/system_options_handler.h
+++ b/chrome/browser/ui/webui/options/chromeos/system_options_handler.h
@@ -29,8 +29,28 @@ class SystemOptionsHandler : public chromeos::CrosOptionsPageUIHandler {
// ("true" or "false").
void AccessibilityChangeCallback(const base::ListValue* args);
+ // Called when the 'Enable bluetooth' checkbox value is changed.
+ // |args| will contain the checkbox checked state as a string
+ // ("true" or "false").
+ void BluetoothEnableChangeCallback(const base::ListValue* args);
+
+ // Called when the 'Find Devices' button is pressed from the
+ // Bluetooth settings.
+ // |args| will contain the list of devices currently connected
+ // devices according to the System options page.
+ void FindBluetoothDevicesCallback(const base::ListValue* args);
+
+ // Sends a notification to the Web UI of the status of a bluetooth device.
+ // |device| is the decription of the device. The supported dictionary keys
+ // for device are "deviceName", "deviceId", "deviceType" and "deviceStatus".
+ void BluetoothDeviceNotification(const base::DictionaryValue& device);
+
private:
DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
James Hawkins 2011/10/06 17:20:45 DISALLOW..() goes at the bottom.
kevers 2011/10/06 20:24:41 Done.
+
+ // Simulates extracting a list of available bluetooth devices.
+ // Called when emulating ChromeOS from a desktop environment.
+ void GenerateFakeDeviceList();
};
#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698