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

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: BlueTooth -> Bluetooth. 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..79503cbd90814f3f74d5484fde09d767592cacef 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,34 @@ 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.
James Hawkins 2011/10/04 20:43:39 This indentation is inconsistent with the doc one
kevers 2011/10/05 14:23:01 Done.
+ void FindBluetoothDevicesCallback(const base::ListValue* args);
+
private:
DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
+
+ // Simulates extracting a list of available bluetooth devices.
+ // Called when emulating ChromeOS from a desktop environment.
+ void GenerateFakeDeviceList();
+
+ // Notifies the Web UI of the status of a bluetooth device.
+ // |name| is display name for the device.
+ // |id| is the unique ID of the device (i.e. device address).
+ // |type| is the type of device.
+ // |connected| indicates if the device is the connected.
+ void BluetoothDeviceNotification(
+ const std::string& name,
+ const std::string& id,
+ const std::string& type,
+ bool connected);
};
#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698