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 "config.h" | |
6 #include "modules/bluetooth/BluetoothCharacteristicProperties.h" | 5 #include "modules/bluetooth/BluetoothCharacteristicProperties.h" |
7 | 6 |
8 namespace blink { | 7 namespace blink { |
9 | 8 |
10 BluetoothCharacteristicProperties* BluetoothCharacteristicProperties::create(uin
t32_t properties) | 9 BluetoothCharacteristicProperties* BluetoothCharacteristicProperties::create(uin
t32_t properties) |
11 { | 10 { |
12 return new BluetoothCharacteristicProperties(properties); | 11 return new BluetoothCharacteristicProperties(properties); |
13 } | 12 } |
14 | 13 |
15 bool BluetoothCharacteristicProperties::broadcast() const | 14 bool BluetoothCharacteristicProperties::broadcast() const |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 return properties & Property::WritableAuxiliaries; | 56 return properties & Property::WritableAuxiliaries; |
58 } | 57 } |
59 | 58 |
60 BluetoothCharacteristicProperties::BluetoothCharacteristicProperties(uint32_t de
vice_properties) | 59 BluetoothCharacteristicProperties::BluetoothCharacteristicProperties(uint32_t de
vice_properties) |
61 { | 60 { |
62 ASSERT(device_properties != Property::None); | 61 ASSERT(device_properties != Property::None); |
63 properties = device_properties; | 62 properties = device_properties; |
64 } | 63 } |
65 | 64 |
66 } // namespace blink | 65 } // namespace blink |
OLD | NEW |