| 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 #include "content/browser/device_sensors/data_fetcher_shared_memory.h" | 5 #include "content/browser/device_sensors/data_fetcher_shared_memory.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 9 #include "content/browser/device_sensors/ambient_light_mac.h" | 11 #include "content/browser/device_sensors/ambient_light_mac.h" |
| 10 #include "third_party/sudden_motion_sensor/sudden_motion_sensor_mac.h" | 12 #include "third_party/sudden_motion_sensor/sudden_motion_sensor_mac.h" |
| 11 | 13 |
| 12 namespace { | 14 namespace { |
| 13 | 15 |
| 14 const double kMeanGravity = 9.80665; | 16 const double kMeanGravity = 9.80665; |
| 15 | 17 |
| 16 double LMUvalueToLux(uint64_t raw_value) { | 18 double LMUvalueToLux(uint64_t raw_value) { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 light_buffer_ = nullptr; | 259 light_buffer_ = nullptr; |
| 258 } | 260 } |
| 259 return true; | 261 return true; |
| 260 default: | 262 default: |
| 261 NOTREACHED(); | 263 NOTREACHED(); |
| 262 } | 264 } |
| 263 return false; | 265 return false; |
| 264 } | 266 } |
| 265 | 267 |
| 266 } // namespace content | 268 } // namespace content |
| OLD | NEW |