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

Unified Diff: device/bluetooth/bluetooth_device_experimental_chromeos.cc

Issue 14048007: Bluetooth: D-Bus client interface for org.bluez.Input1 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: bt_experimental implemented + test Created 7 years, 8 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: device/bluetooth/bluetooth_device_experimental_chromeos.cc
diff --git a/device/bluetooth/bluetooth_device_experimental_chromeos.cc b/device/bluetooth/bluetooth_device_experimental_chromeos.cc
index fb36c8450c43312e928c254f5a19fdd1135a32ea..be58359faa0b9f5dfa873b94562c3639cd4cb4c7 100644
--- a/device/bluetooth/bluetooth_device_experimental_chromeos.cc
+++ b/device/bluetooth/bluetooth_device_experimental_chromeos.cc
@@ -10,6 +10,7 @@
#include "chromeos/dbus/experimental_bluetooth_agent_manager_client.h"
#include "chromeos/dbus/experimental_bluetooth_agent_service_provider.h"
#include "chromeos/dbus/experimental_bluetooth_device_client.h"
+#include "chromeos/dbus/experimental_bluetooth_input_client.h"
#include "dbus/bus.h"
#include "device/bluetooth/bluetooth_adapter_experimental_chromeos.h"
#include "device/bluetooth/bluetooth_socket.h"
@@ -87,8 +88,13 @@ bool BluetoothDeviceExperimentalChromeOS::IsConnected() const {
}
bool BluetoothDeviceExperimentalChromeOS::IsConnectable() const {
- // TODO(deymo): implement
- return false;
+ ExperimentalBluetoothInputClient::Properties* input_properties =
+ DBusThreadManager::Get()->GetExperimentalBluetoothInputClient()->
+ GetProperties(object_path_);
+ if (!input_properties)
keybuk 2013/04/18 20:50:25 This bit is worthy of a comment explaining why thi
deymo 2013/04/18 22:19:55 Done.
+ return true;
+
+ return input_properties->reconnect_mode.value() != "device";
}
bool BluetoothDeviceExperimentalChromeOS::IsConnecting() const {

Powered by Google App Engine
This is Rietveld 408576698