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

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

Issue 8366016: Split out bluetooth UI handler from system UI handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Bluetooth UI handler. 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
diff --git a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..30f69833ce8115832e7f02195c6de875053d1b1c
--- /dev/null
+++ b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
@@ -0,0 +1,60 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
+#pragma once
+
+#include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace chromeos {
+
+// Handler for Bluetooth options on the system options page.
+class BluetoothOptionsHandler : public chromeos::CrosOptionsPageUIHandler {
+ public:
+ BluetoothOptionsHandler();
+ virtual ~BluetoothOptionsHandler();
+
+ // OptionsPageUIHandler implementation.
+ virtual void GetLocalizedValues(base::DictionaryValue* localized_strings);
+ virtual void Initialize();
+
James Hawkins 2011/10/20 21:24:42 Consistency: remove blank line.
+ virtual void RegisterMessages();
+
+ // Called when the 'Enable bluetooth' checkbox value is changed.
+ // |args| will contain the checkbox checked state as a string
+ // ("true" or "false").
+ void EnableChangeCallback(const base::ListValue* args);
+
+ // Called when the 'Find Devices' button is pressed from the Bluetooth
+ // ssettings.
+ // |args| will be an empty list.
+ void FindDevicesCallback(const base::ListValue* args);
+
+ // Called when the user requests to connect to or disconnect from a Bluetooth
+ // device.
+ // |args| will be a list containing two arguments, the first argument is the
+ // device ID and the second is the requested action.
+ void UpdateDeviceCallback(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 DeviceNotification(const base::DictionaryValue& device);
+
+ private:
+ // Simulates extracting a list of available bluetooth devices.
+ // Called when emulating ChromeOS from a desktop environment.
+ void GenerateFakeDeviceList();
+
+ DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler);
+};
+
+}
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698