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

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
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 dc5d03316870814d07eaade90a27db965d986d8a..0dffd0fb203c1f8848ddcd10b0060035ac527164 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 PowerSupplyStatus;
class SystemTrayDelegate {
@@ -93,6 +104,9 @@ class SystemTrayDelegate {
// Attempts to lock the screen.
virtual void RequestLockScreen() = 0;
+ // Returns a list of available bluetooth devices.
+ virtual BluetoothDeviceList GetAvailableBluetoothDevices() = 0;
+
// Returns information about the most relevant network. Relevance is
// determined by the implementor (e.g. a connecting network may be more
// relevant over a connected network etc.)

Powered by Google App Engine
This is Rietveld 408576698