| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DEVICE_LIGHT_DATA_H_ | 5 #ifndef SERVICES_DEVICE_SENSORS_PUBLIC_CPP_DEVICE_LIGHT_DATA_H_ |
| 6 #define DEVICE_SENSORS_PUBLIC_CPP_DEVICE_LIGHT_DATA_H_ | 6 #define SERVICES_DEVICE_SENSORS_PUBLIC_CPP_DEVICE_LIGHT_DATA_H_ |
| 7 | 7 |
| 8 namespace device { | 8 namespace device { |
| 9 | 9 |
| 10 // This struct is intentionally POD and fixed size so that it can be stored | 10 // This struct is intentionally POD and fixed size so that it can be stored |
| 11 // in shared memory between the sensor interface impl and its clients. | 11 // in shared memory between the sensor interface impl and its clients. |
| 12 // POD class should be a struct, should have an inline cstor that uses | 12 // POD class should be a struct, should have an inline cstor that uses |
| 13 // initializer lists and no dstor. | 13 // initializer lists and no dstor. |
| 14 struct DeviceLightData { | 14 struct DeviceLightData { |
| 15 DeviceLightData() : value(-1) {} | 15 DeviceLightData() : value(-1) {} |
| 16 double value; | 16 double value; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 } // namespace device | 19 } // namespace device |
| 20 | 20 |
| 21 #endif // DEVICE_SENSORS_PUBLIC_CPP_DEVICE_LIGHT_DATA_H_ | 21 #endif // SERVICES_DEVICE_SENSORS_PUBLIC_CPP_DEVICE_LIGHT_DATA_H_ |
| OLD | NEW |