| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/bluetooth/BluetoothCharacteristicProperties.h" | 5 #include "modules/bluetooth/BluetoothCharacteristicProperties.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 BluetoothCharacteristicProperties* BluetoothCharacteristicProperties::Create( | 9 BluetoothCharacteristicProperties* BluetoothCharacteristicProperties::Create( |
| 10 uint32_t properties) { | 10 uint32_t properties) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 bool BluetoothCharacteristicProperties::reliableWrite() const { | 42 bool BluetoothCharacteristicProperties::reliableWrite() const { |
| 43 return properties & Property::kReliableWrite; | 43 return properties & Property::kReliableWrite; |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool BluetoothCharacteristicProperties::writableAuxiliaries() const { | 46 bool BluetoothCharacteristicProperties::writableAuxiliaries() const { |
| 47 return properties & Property::kWritableAuxiliaries; | 47 return properties & Property::kWritableAuxiliaries; |
| 48 } | 48 } |
| 49 | 49 |
| 50 BluetoothCharacteristicProperties::BluetoothCharacteristicProperties( | 50 BluetoothCharacteristicProperties::BluetoothCharacteristicProperties( |
| 51 uint32_t device_properties) { | 51 uint32_t device_properties) { |
| 52 ASSERT(device_properties != Property::kNone); | 52 DCHECK(device_properties != Property::kNone); |
| 53 properties = device_properties; | 53 properties = device_properties; |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| OLD | NEW |