OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "device/bluetooth/bluetooth_device.h" | 5 #include "device/bluetooth/bluetooth_device.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "device/bluetooth/bluetooth_adapter.h" | 16 #include "device/bluetooth/bluetooth_adapter.h" |
17 #include "device/bluetooth/bluetooth_gatt_connection.h" | 17 #include "device/bluetooth/bluetooth_gatt_connection.h" |
18 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" | 18 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" |
19 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" | 19 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" |
20 #include "device/bluetooth/bluetooth_remote_gatt_service.h" | 20 #include "device/bluetooth/bluetooth_remote_gatt_service.h" |
21 #include "device/bluetooth/string_util_icu.h" | 21 #include "device/bluetooth/string_util_icu.h" |
22 #include "grit/bluetooth_strings.h" | 22 #include "device/bluetooth/strings/grit/bluetooth_strings.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 | 24 |
25 namespace device { | 25 namespace device { |
26 | 26 |
27 BluetoothDevice::DeviceUUIDs::DeviceUUIDs() = default; | 27 BluetoothDevice::DeviceUUIDs::DeviceUUIDs() = default; |
28 | 28 |
29 BluetoothDevice::DeviceUUIDs::~DeviceUUIDs() = default; | 29 BluetoothDevice::DeviceUUIDs::~DeviceUUIDs() = default; |
30 | 30 |
31 BluetoothDevice::DeviceUUIDs::DeviceUUIDs(const DeviceUUIDs& other) = default; | 31 BluetoothDevice::DeviceUUIDs::DeviceUUIDs(const DeviceUUIDs& other) = default; |
32 | 32 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 if (power < INT8_MIN) { | 590 if (power < INT8_MIN) { |
591 return INT8_MIN; | 591 return INT8_MIN; |
592 } | 592 } |
593 if (power > INT8_MAX) { | 593 if (power > INT8_MAX) { |
594 return INT8_MAX; | 594 return INT8_MAX; |
595 } | 595 } |
596 return static_cast<int8_t>(power); | 596 return static_cast<int8_t>(power); |
597 } | 597 } |
598 | 598 |
599 } // namespace device | 599 } // namespace device |
OLD | NEW |