Commit 139a35b4 authored by benchan's avatar benchan Committed by Commit bot

Fix typos in device/bluetooth headers.

BUG=None

Review URL: https://codereview.chromium.org/681193002

Cr-Commit-Position: refs/heads/master@{#301576}
parent fd669ae6
......@@ -230,7 +230,7 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter> {
// Requests that the adapter change its discoverability state. If
// |discoverable| is true, then it will be discoverable by other Bluetooth
// devices. On successly changing the adapter's discoverability, |callback|
// devices. On successfully changing the adapter's discoverability, |callback|
// will be called. On failure, |error_callback| will be called.
virtual void SetDiscoverable(bool discoverable,
const base::Closure& callback,
......
......@@ -25,7 +25,7 @@ class BluetoothGattNotifySession;
// with a BluetoothGattService. There are two ways in which this class is used:
//
// 1. To represent GATT characteristics that belong to a service hosted by a
// a remote device. In this case the characteristic will be constructed by
// remote device. In this case the characteristic will be constructed by
// the subsystem.
// 2. To represent GATT characteristics that belong to a locally hosted
// service. To achieve this, users can construct instances of
......
......@@ -827,7 +827,7 @@ TEST_F(BluetoothGattChromeOSTest, GattCharacteristicValue) {
// Run the message loop so that the characteristics appear.
base::MessageLoop::current()->Run();
// Issue write request to non-writeable characteristics.
// Issue write request to non-writable characteristics.
observer.last_gatt_characteristic_id_.clear();
observer.last_gatt_characteristic_uuid_ = BluetoothUUID();
......@@ -878,7 +878,7 @@ TEST_F(BluetoothGattChromeOSTest, GattCharacteristicValue) {
last_service_error_);
EXPECT_EQ(0, observer.gatt_characteristic_value_changed_count_);
// Issue write request to writeable characteristic. The "Body Sensor Location"
// Issue write request to writable characteristic. The "Body Sensor Location"
// characteristic does not send notifications and WriteValue does not result
// in a CharacteristicValueChanged event, thus no such event should be
// received.
......
......@@ -24,7 +24,7 @@ class BluetoothGattDescriptor {
// profiles can use. The following are definitions for the list of UUIDs
// and descriptions of the characteristic descriptors that they represent.
// Possible values for and further information on each descriptor can be found
// in Core v4.0, Volume 3, Part G, Section 3.3.3. All of these desciptors are
// in Core v4.0, Volume 3, Part G, Section 3.3.3. All of these descriptors are
// optional and may not be present for a given characteristic.
// The "Characteristic Extended Properties" descriptor. This defines
......@@ -83,7 +83,7 @@ class BluetoothGattDescriptor {
static const BluetoothUUID& CharacteristicPresentationFormatUuid();
// The "Characteristic Aggregate Format" descriptor defines the format of an
// aggragated characteristic value. In GATT's underlying protocol, ATT, each
// aggregated characteristic value. In GATT's underlying protocol, ATT, each
// attribute is identified by a handle that is unique for the hosting server.
// Multiple characteristics can share the same instance(s) of a
// "Characteristic Presentation Format" descriptor. The value of the
......@@ -95,7 +95,8 @@ class BluetoothGattDescriptor {
//
// Applications that are using the device::Bluetooth API do not have access to
// the underlying handles and shouldn't use this descriptor to determine which
// "Characteristic Presentation Format" desciptors belong to a characteristic.
// "Characteristic Presentation Format" descriptors belong to a
// characteristic.
// The API will construct a BluetoothGattDescriptor object for each instance
// of "Characteristic Presentation Format" descriptor per instance of
// BluetoothGattCharacteristic that represents a remote characteristic.
......@@ -133,7 +134,7 @@ class BluetoothGattDescriptor {
const std::vector<uint8>& value,
BluetoothGattCharacteristic::Permissions permissions);
// Identifier used to uniquely identify a GATT descriptorobject. This is
// Identifier used to uniquely identify a GATT descriptor object. This is
// different from the descriptor UUID: while multiple descriptors with the
// same UUID can exist on a Bluetooth device, the identifier returned from
// this method is unique among all descriptors of a device. The contents of
......
......@@ -17,7 +17,7 @@ namespace device {
// BluetoothGattCharacteristic::StartNotifySession.
class BluetoothGattNotifySession {
public:
// Destructor autmatically stops this session.
// Destructor automatically stops this session.
virtual ~BluetoothGattNotifySession();
// Returns the identifier of the associated characteristic.
......
......@@ -45,7 +45,7 @@ class BluetoothGattService {
// Called when a remote device in the central role requests to read the
// value of the characteristic |characteristic| starting at offset |offset|.
// This method is only called if the characteristic was specified as
// readable and any authentication and authorization challanges were
// readable and any authentication and authorization challenges were
// satisfied by the remote device.
//
// To respond to the request with success and return the requested value,
......@@ -65,7 +65,7 @@ class BluetoothGattService {
// Called when a remote device in the central role requests to write the
// value of the characteristic |characteristic| starting at offset |offset|.
// This method is only called if the characteristic was specified as
// writeable and any authentication and authorization challanges were
// writable and any authentication and authorization challenges were
// satisfied by the remote device.
//
// To respond to the request with success the delegate must invoke
......@@ -86,7 +86,7 @@ class BluetoothGattService {
// Called when a remote device in the central role requests to read the
// value of the descriptor |descriptor| starting at offset |offset|.
// This method is only called if the characteristic was specified as
// readable and any authentication and authorization challanges were
// readable and any authentication and authorization challenges were
// satisfied by the remote device.
//
// To respond to the request with success and return the requested value,
......@@ -106,7 +106,7 @@ class BluetoothGattService {
// Called when a remote device in the central role requests to write the
// value of the descriptor |descriptor| starting at offset |offset|.
// This method is only called if the characteristic was specified as
// writeable and any authentication and authorization challanges were
// writable and any authentication and authorization challenges were
// satisfied by the remote device.
//
// To respond to the request with success the delegate must invoke
......
......@@ -25,7 +25,7 @@ namespace bluetooth_init_win {
// Returns true if the machine has a bluetooth stack available. The first call
// to this function will involve file IO, so it should be done on an appropriate
// thread. This function is not threadsafe.
// thread. This function is not thread-safe.
bool HasBluetoothStack();
} // namespace bluetooth_init_win
......
......@@ -19,7 +19,7 @@ class DeviceRegistryPropertyValue {
public:
// Creates a property value instance, where |property_type| is one of REG_xxx
// registry value type (e.g. REG_SZ, REG_DWORD), |value| is a byte array
// containing the propery value and |value_size| is the number of bytes in
// containing the property value and |value_size| is the number of bytes in
// |value|. Note the returned instance takes ownership of the bytes in
// |value|.
static scoped_ptr<DeviceRegistryPropertyValue> Create(
......@@ -51,7 +51,7 @@ class DevicePropertyValue {
public:
// Creates a property value instance, where |property_type| is one of
// DEVPROP_TYPE_xxx value type , |value| is a byte array containing the
// propery value and |value_size| is the number of bytes in |value|. Note the
// property value and |value_size| is the number of bytes in |value|. Note the
// returned instance takes ownership of the bytes in |value|.
DevicePropertyValue(DEVPROPTYPE property_type,
scoped_ptr<uint8_t[]> value,
......
......@@ -109,7 +109,7 @@ class BluetoothPairingChromeOS {
private:
// Internal method to reset the current set of callbacks because a new
// request has arrived that supercedes them.
// request has arrived that supersedes them.
void ResetCallbacks();
// Internal method to respond to the relevant callback for a RejectPairing
......
......@@ -33,7 +33,7 @@ class BluetoothRemoteGattCharacteristicChromeOS;
class BluetoothRemoteGattDescriptorChromeOS;
// The BluetoothRemoteGattServiceChromeOS class implements BluetootGattService
// for remote GATT services on the the Chrome OS platform.
// for remote GATT services on the Chrome OS platform.
class BluetoothRemoteGattServiceChromeOS
: public device::BluetoothGattService,
public BluetoothGattServiceClient::Observer,
......
......@@ -25,7 +25,7 @@ class BluetoothUUID;
// creation. In terms of threading, platform specific implementations may
// differ slightly, but platform independent consumers must guarantee calling
// various instance methods on the same thread as the thread used at
// construction time -- platform specific implementation are resonsible for
// construction time -- platform specific implementation are responsible for
// marshalling calls to a different thread if required.
class BluetoothSocket : public base::RefCountedThreadSafe<BluetoothSocket> {
public:
......@@ -44,7 +44,7 @@ class BluetoothSocket : public base::RefCountedThreadSafe<BluetoothSocket> {
// Destroys resources associated with the socket. After calling this method,
// it is illegal to call any method on this socket instance (except for the
// desctrutor via Release).
// destructor via Release).
virtual void Close() = 0;
// Gracefully disconnects the socket and calls |callback| upon completion.
......
......@@ -116,8 +116,8 @@ class BluetoothTaskManagerWin
virtual ~BluetoothTaskManagerWin();
// Logs Win32 errors occuring during polling on the worker thread. The method
// may discards messages to avoid logging being too verbose.
// Logs Win32 errors occurring during polling on the worker thread. The method
// may discard messages to avoid logging being too verbose.
void LogPollingError(const char* message, int win32_error);
// Notify all Observers of updated AdapterState. Should only be called on the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment