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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.h

Issue 184953002: Migrate Chrome OS Bluetooth UI to the new discovery API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments by derat@ and keybuk@. Created 6 years, 10 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: chrome/browser/ui/ash/system_tray_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.h b/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
index c37575aac986e10196baf43b853cf5f2b2d6246a..dde33d0fccb473f84d8ce1683aa81731fbee3302 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
@@ -29,6 +29,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "device/bluetooth/bluetooth_adapter.h"
+#include "device/bluetooth/bluetooth_discovery_session.h"
namespace chromeos {
@@ -222,6 +223,9 @@ class SystemTrayDelegateChromeOS
virtual void DeviceRemoved(device::BluetoothAdapter* adapter,
device::BluetoothDevice* device) OVERRIDE;
+ void OnStartBluetoothDiscoverySession(
+ scoped_ptr<device::BluetoothDiscoverySession> discovery_session);
+
// Overridden from SystemKeyEventListener::CapsLockObserver.
virtual void OnCapsLockChange(bool enabled) OVERRIDE;
@@ -249,8 +253,10 @@ class SystemTrayDelegateChromeOS
bool have_session_length_limit_;
base::TimeDelta session_length_limit_;
std::string enterprise_domain_;
+ bool should_run_bluetooth_discovery_;
scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_;
+ scoped_ptr<device::BluetoothDiscoverySession> bluetooth_discovery_session_;
scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_;
scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_;
scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_;

Powered by Google App Engine
This is Rietveld 408576698