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..73526597c8b883c937c401e212a61aa193d7795f |
| --- /dev/null |
| +++ b/content/common/device_sensors/device_light_data.h |
| @@ -0,0 +1,23 @@ |
| +// 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_ |
| + |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +// This struct is intentionally POD and fixed size so that it can be stored |
| +// in shared memory between the browser and the renderer processes. |
| +// POD class should be a struct, should have an inline cstor that uses |
| +// initializer lists and no dstor. |
| +struct DeviceLightData { |
| + CONTENT_EXPORT DeviceLightData() : value(-1) {} |
|
jochen (gone - plz use gerrit)
2014/06/25 13:16:11
no need for content exporting this, since all is i
riju_
2014/06/25 15:53:11
Done.
|
| + double value; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_ |