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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h" 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h"
10 10
(...skipping 11 matching lines...) Expand all
22 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); 22 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings);
23 virtual void Initialize(); 23 virtual void Initialize();
24 24
25 virtual void RegisterMessages(); 25 virtual void RegisterMessages();
26 26
27 // Called when the accessibility checkbox value is changed. 27 // Called when the accessibility checkbox value is changed.
28 // |args| will contain the checkbox checked state as a string 28 // |args| will contain the checkbox checked state as a string
29 // ("true" or "false"). 29 // ("true" or "false").
30 void AccessibilityChangeCallback(const base::ListValue* args); 30 void AccessibilityChangeCallback(const base::ListValue* args);
31 31
32 // Called when the 'Enable bluetooth' checkbox value is changed.
33 // |args| will contain the checkbox checked state as a string
34 // ("true" or "false").
35 void BluetoothEnableChangeCallback(const base::ListValue* args);
36
37 // Called when the 'Find Devices' button is pressed from the
38 // Bluetooth settings.
39 // |args| will contain the list of devices currently connected
40 // 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.
41 void FindBluetoothDevicesCallback(const base::ListValue* args);
42
32 private: 43 private:
33 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); 44 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
45
46 // Simulates extracting a list of available bluetooth devices.
47 // Called when emulating ChromeOS from a desktop environment.
48 void GenerateFakeDeviceList();
49
50 // Notifies the Web UI of the status of a bluetooth device.
51 // |name| is display name for the device.
52 // |id| is the unique ID of the device (i.e. device address).
53 // |type| is the type of device.
54 // |connected| indicates if the device is the connected.
55 void BluetoothDeviceNotification(
56 const std::string& name,
57 const std::string& id,
58 const std::string& type,
59 bool connected);
34 }; 60 };
35 61
36 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ 62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698