Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: content/common/device_sensors/device_light_data.h

Issue 286793002: [DeviceLight] Add renderer+common parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tim's comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_
6 #define CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_
7
8 #pragma pack(push, 1)
9
10 class DeviceLightData {
11 public:
12 DeviceLightData() {
13 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.
14 }
15 ~DeviceLightData() { }
16
17 double value;
18 bool valueIsUpdated : 1;
19 };
20
21 #pragma pack(pop)
22
23 #endif // CONTENT_COMMON_DEVICE_SENSORS_DEVICE_LIGHT_DATA_H_
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698