| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "device/generic_sensor/platform_sensor_reader_win.h" | 5 #include "device/generic_sensor/platform_sensor_reader_win.h" |
| 6 | 6 |
| 7 #include <Sensors.h> | 7 #include <Sensors.h> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 12 #include "base/win/iunknown_impl.h" | 13 #include "base/win/iunknown_impl.h" |
| 13 #include "device/generic_sensor/generic_sensor_consts.h" | 14 #include "device/generic_sensor/generic_sensor_consts.h" |
| 14 #include "device/generic_sensor/public/cpp/platform_sensor_configuration.h" | 15 #include "device/generic_sensor/public/cpp/platform_sensor_configuration.h" |
| 15 #include "device/generic_sensor/public/cpp/sensor_reading.h" | 16 #include "device/generic_sensor/public/cpp/sensor_reading.h" |
| 16 | 17 |
| 17 namespace device { | 18 namespace device { |
| 18 | 19 |
| 19 // Init params for the PlatformSensorReaderWin. | 20 // Init params for the PlatformSensorReaderWin. |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 void PlatformSensorReaderWin::SensorError() { | 430 void PlatformSensorReaderWin::SensorError() { |
| 430 if (client_) | 431 if (client_) |
| 431 client_->OnSensorError(); | 432 client_->OnSensorError(); |
| 432 } | 433 } |
| 433 | 434 |
| 434 unsigned long PlatformSensorReaderWin::GetMinimalReportingIntervalMs() const { | 435 unsigned long PlatformSensorReaderWin::GetMinimalReportingIntervalMs() const { |
| 435 return init_params_->min_reporting_interval_ms; | 436 return init_params_->min_reporting_interval_ms; |
| 436 } | 437 } |
| 437 | 438 |
| 438 } // namespace device | 439 } // namespace device |
| OLD | NEW |