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

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: Merge with trunk. 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 virtual void RegisterMessages();
27
28 // Called when the 'Enable bluetooth' checkbox value is changed.
29 // |args| will contain the checkbox checked state as a string
30 // ("true" or "false").
31 void EnableChangeCallback(const base::ListValue* args);
32
33 // Called when the 'Find Devices' button is pressed from the Bluetooth
34 // ssettings.
35 // |args| will be an empty list.
36 void FindDevicesCallback(const base::ListValue* args);
37
38 // Called when the user requests to connect to or disconnect from a Bluetooth
39 // device.
40 // |args| will be a list containing two arguments, the first argument is the
41 // device ID and the second is the requested action.
42 void UpdateDeviceCallback(const base::ListValue* args);
43
44 // Sends a notification to the Web UI of the status of a bluetooth device.
45 // |device| is the decription of the device. The supported dictionary keys
46 // for device are "deviceName", "deviceId", "deviceType" and "deviceStatus".
47 void DeviceNotification(const base::DictionaryValue& device);
48
49 private:
50 // Simulates extracting a list of available bluetooth devices.
51 // Called when emulating ChromeOS from a desktop environment.
52 void GenerateFakeDeviceList();
53
54 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler);
55 };
56
57 }
58
59 #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