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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
7 #pragma once
8
9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h"
10
11 namespace base {
12 class DictionaryValue;
13 }
14
15 namespace chromeos {
16
17 // Handler for Bluetooth options on the system options page.
18 class BluetoothOptionsHandler : public chromeos::CrosOptionsPageUIHandler {
19 public:
20 BluetoothOptionsHandler();
21 virtual ~BluetoothOptionsHandler();
22
23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings);
25 virtual void Initialize();
26
James Hawkins 2011/10/20 21:24:42 Consistency: remove blank line.
27 virtual void RegisterMessages();
28
29 // Called when the 'Enable bluetooth' checkbox value is changed.
30 // |args| will contain the checkbox checked state as a string
31 // ("true" or "false").
32 void EnableChangeCallback(const base::ListValue* args);
33
34 // Called when the 'Find Devices' button is pressed from the Bluetooth
35 // ssettings.
36 // |args| will be an empty list.
37 void FindDevicesCallback(const base::ListValue* args);
38
39 // Called when the user requests to connect to or disconnect from a Bluetooth
40 // device.
41 // |args| will be a list containing two arguments, the first argument is the
42 // device ID and the second is the requested action.
43 void UpdateDeviceCallback(const base::ListValue* args);
44
45 // Sends a notification to the Web UI of the status of a bluetooth device.
46 // |device| is the decription of the device. The supported dictionary keys
47 // for device are "deviceName", "deviceId", "deviceType" and "deviceStatus".
48 void DeviceNotification(const base::DictionaryValue& device);
49
50 private:
51 // Simulates extracting a list of available bluetooth devices.
52 // Called when emulating ChromeOS from a desktop environment.
53 void GenerateFakeDeviceList();
54
55 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler);
56 };
57
58 }
59
60 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
OLDNEW
« 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