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> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "content/browser/device_sensors/ambient_light_mac.h" | 12 #include "content/browser/device_sensors/ambient_light_mac.h" |
13 #include "third_party/sudden_motion_sensor/sudden_motion_sensor_mac.h" | 13 #include "third_party/sudden_motion_sensor/sudden_motion_sensor_mac.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const double kMeanGravity = 9.80665; | 17 const double kMeanGravity = 9.80665; |
18 | 18 |
19 double LMUvalueToLux(uint64_t raw_value) { | 19 double LMUvalueToLux(uint64_t raw_value) { |
20 // Conversion formula from regression. | 20 // Conversion formula from regression. |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 light_buffer_ = nullptr; | 271 light_buffer_ = nullptr; |
272 } | 272 } |
273 return true; | 273 return true; |
274 default: | 274 default: |
275 NOTREACHED(); | 275 NOTREACHED(); |
276 } | 276 } |
277 return false; | 277 return false; |
278 } | 278 } |
279 | 279 |
280 } // namespace content | 280 } // namespace content |
OLD | NEW |