| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef DEVICE_SENSORS_PUBLIC_CPP_MOTION_DATA_H_ | 5 #ifndef SERVICES_DEVICE_PUBLIC_CPP_SENSORS_MOTION_DATA_H_ |
| 6 #define DEVICE_SENSORS_PUBLIC_CPP_MOTION_DATA_H_ | 6 #define SERVICES_DEVICE_PUBLIC_CPP_SENSORS_MOTION_DATA_H_ |
| 7 | 7 |
| 8 namespace device { | 8 namespace device { |
| 9 | 9 |
| 10 #pragma pack(push, 1) | 10 #pragma pack(push, 1) |
| 11 | 11 |
| 12 class MotionData { | 12 class MotionData { |
| 13 public: | 13 public: |
| 14 MotionData(); | 14 MotionData(); |
| 15 MotionData(const MotionData& other); | 15 MotionData(const MotionData& other); |
| 16 ~MotionData() {} | 16 ~MotionData() {} |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 bool all_available_sensors_are_active : 1; | 44 bool all_available_sensors_are_active : 1; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 static_assert(sizeof(MotionData) == (10 * sizeof(double) + 2 * sizeof(char)), | 47 static_assert(sizeof(MotionData) == (10 * sizeof(double) + 2 * sizeof(char)), |
| 48 "MotionData has wrong size"); | 48 "MotionData has wrong size"); |
| 49 | 49 |
| 50 #pragma pack(pop) | 50 #pragma pack(pop) |
| 51 | 51 |
| 52 } // namespace device | 52 } // namespace device |
| 53 | 53 |
| 54 #endif // DEVICE_SENSORS_PUBLIC_CPP_MOTION_DATA_H_ | 54 #endif // SERVICES_DEVICE_PUBLIC_CPP_SENSORS_MOTION_DATA_H_ |
| OLD | NEW |