Chromium Code Reviews| Index: content/common/device_sensors/device_light_data.h |
| diff --git a/content/common/device_sensors/device_light_data.h b/content/common/device_sensors/device_light_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9bb981fca8f6b0e0f17f2bf0683afb7aa9be7828 |
| --- /dev/null |
| +++ b/content/common/device_sensors/device_light_data.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_ |
| +#define CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_ |
| + |
| +#pragma pack(push, 1) |
| + |
| +class DeviceLightData { |
| + public: |
| + DeviceLightData() { |
| + memset(this, 0, sizeof(*this)); |
|
timvolodine
2014/06/03 16:08:12
I would not inline and create a corresponding .cpp
riju_
2014/06/05 19:49:59
Done.
|
| + } |
| + ~DeviceLightData() { } |
| + |
| + double value; |
| + bool valueIsUpdated : 1; |
| +}; |
| + |
| +#pragma pack(pop) |
| + |
| +#endif // CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_ |
| + |