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

Unified Diff: ash/system/tray/system_tray_delegate.h

Issue 9753019: ash: Add a bluetooth entry in the uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 05d594c0659fe47c79ef8e3c263503cb63f9867a..3f928fa9d81a5c94f99ddd936933f21573287de9 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -30,6 +30,17 @@ struct ASH_EXPORT NetworkIconInfo {
std::string service_path;
};
+struct ASH_EXPORT BluetoothDeviceInfo {
+ BluetoothDeviceInfo();
+ ~BluetoothDeviceInfo();
+
+ std::string address;
+ string16 display_name;
+ bool connected;
+};
+
+typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList;
+
struct ASH_EXPORT IMEInfo {
IMEInfo();
~IMEInfo();
@@ -72,9 +83,12 @@ class SystemTrayDelegate {
// Shows the settings related to date, timezone etc.
virtual void ShowDateSettings() = 0;
- // Show the settings related to network.
+ // Shows the settings related to network.
virtual void ShowNetworkSettings() = 0;
+ // Shows the settings related to bluetooth.
+ virtual void ShowBluetoothSettings() = 0;
+
// Shows help.
virtual void ShowHelp() = 0;
@@ -105,8 +119,11 @@ class SystemTrayDelegate {
// Attempts to lock the screen.
virtual void RequestLockScreen() = 0;
+ // Returns a list of available bluetooth devices.
+ virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* devices) = 0;
+
// Returns a list of availble IMEs.
- virtual IMEInfoList GetAvailableIMEList() = 0;
+ virtual void GetAvailableIMEList(IMEInfoList* list) = 0;
// Returns information about the most relevant network. Relevance is
// determined by the implementor (e.g. a connecting network may be more
@@ -119,6 +136,9 @@ class SystemTrayDelegate {
// Connects to the network specified by the unique id.
virtual void ConnectToNetwork(const std::string& network_id) = 0;
+ // Shous UI to add a new bluetooth device.
+ virtual void AddBluetoothDevice() = 0;
+
// Toggles airplane mode.
virtual void ToggleAirplaneMode() = 0;
@@ -128,18 +148,27 @@ class SystemTrayDelegate {
// Toggles cellular network.
virtual void ToggleCellular() = 0;
+ // Toggles bluetooth.
+ virtual void ToggleBluetooth() = 0;
+
// Returns whether wifi is available.
virtual bool GetWifiAvailable() = 0;
// Returns whether cellular networking is available.
virtual bool GetCellularAvailable() = 0;
+ // Returns whether bluetooth capability is available.
+ virtual bool GetBluetoothAvailable() = 0;
+
// Returns whether wifi is enabled.
virtual bool GetWifiEnabled() = 0;
// Returns whether cellular networking is enabled.
virtual bool GetCellularEnabled() = 0;
+ // Returns whether bluetooth is enabled.
+ virtual bool GetBluetoothEnabled() = 0;
+
// Shows UI for changing proxy settings.
virtual void ChangeProxySettings() = 0;
};
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698