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

Unified Diff: chromeos/dbus/bluetooth_media_transport_client.cc

Issue 910023002: device/bluetooth:Implement BluetoothMediaEndpointServiceProvider delegate and media-related overrid… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved the addition/removal of all types of observer to constructor/destructor. Created 5 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
« no previous file with comments | « chromeos/dbus/bluetooth_media_transport_client.h ('k') | chromeos/dbus/fake_bluetooth_media_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/bluetooth_media_transport_client.cc
diff --git a/chromeos/dbus/bluetooth_media_transport_client.cc b/chromeos/dbus/bluetooth_media_transport_client.cc
index ce9f017348add6115cc1d5e13e55d859f303923e..7672ea38aeb385dc4841e708168247b147434272 100644
--- a/chromeos/dbus/bluetooth_media_transport_client.cc
+++ b/chromeos/dbus/bluetooth_media_transport_client.cc
@@ -20,28 +20,33 @@ namespace {
// later.
const char kBluetoothMediaTransportInterface[] = "org.bluez.MediaTransport1";
+// Constants used to indicate exceptional error conditions.
+const char kNoResponseError[] = "org.chromium.Error.NoResponse";
+const char kUnexpectedResponse[] = "org.chromium.Error.UnexpectedResponse";
+
// Method names of Media Transport interface.
const char kAcquire[] = "Acquire";
const char kTryAcquire[] = "TryAcquire";
const char kRelease[] = "Release";
-// Property names of Media Transport interface.
-const char kDeviceProperty[] = "Device";
-const char kUUIDProperty[] = "UUID";
-const char kCodecProperty[] = "Codec";
-const char kConfigurationProperty[] = "Configuration";
-const char kStateProperty[] = "State";
-const char kDelayProperty[] = "Delay";
-const char kVolumeProperty[] = "Volume";
-
} // namespace
namespace chromeos {
-const char BluetoothMediaTransportClient::kNoResponseError[] =
- "org.chromium.Error.NoResponse";
-const char BluetoothMediaTransportClient::kUnexpectedResponse[] =
- "org.chromium.Error.UnexpectedResponse";
+// static
+const char BluetoothMediaTransportClient::kDeviceProperty[] = "Device";
+const char BluetoothMediaTransportClient::kUUIDProperty[] = "UUID";
+const char BluetoothMediaTransportClient::kCodecProperty[] = "Codec";
+const char BluetoothMediaTransportClient::kConfigurationProperty[] =
+ "Configuration";
+const char BluetoothMediaTransportClient::kStateProperty[] = "State";
+const char BluetoothMediaTransportClient::kDelayProperty[] = "Delay";
+const char BluetoothMediaTransportClient::kVolumeProperty[] = "Volume";
+
+// static
+const char BluetoothMediaTransportClient::kStateIdle[] = "idle";
+const char BluetoothMediaTransportClient::kStatePending[] = "pending";
+const char BluetoothMediaTransportClient::kStateActive[] = "active";
BluetoothMediaTransportClient::Properties::Properties(
dbus::ObjectProxy* object_proxy,
« no previous file with comments | « chromeos/dbus/bluetooth_media_transport_client.h ('k') | chromeos/dbus/fake_bluetooth_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698