| 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 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ | 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ |
| 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ | 6 #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ |
| 7 | 7 |
| 8 #include <SensorsApi.h> | 8 #include <SensorsApi.h> |
| 9 | 9 |
| 10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
| 11 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" | 11 #include "services/device/public/interfaces/sensor.mojom.h" |
| 12 | 12 |
| 13 namespace device { | 13 namespace device { |
| 14 | 14 |
| 15 class PlatformSensorConfiguration; | 15 class PlatformSensorConfiguration; |
| 16 struct ReaderInitParams; | 16 struct ReaderInitParams; |
| 17 struct SensorReading; | 17 struct SensorReading; |
| 18 | 18 |
| 19 // Generic class that uses ISensor interface to fetch sensor data. Used | 19 // Generic class that uses ISensor interface to fetch sensor data. Used |
| 20 // by PlatformSensorWin and delivers notifications via Client interface. | 20 // by PlatformSensorWin and delivers notifications via Client interface. |
| 21 // Instances of this class must be created and destructed on the same thread. | 21 // Instances of this class must be created and destructed on the same thread. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 Client* client_; | 72 Client* client_; |
| 73 base::win::ScopedComPtr<ISensor> sensor_; | 73 base::win::ScopedComPtr<ISensor> sensor_; |
| 74 scoped_refptr<EventListener> event_listener_; | 74 scoped_refptr<EventListener> event_listener_; |
| 75 base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_; | 75 base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin); | 77 DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace device | 80 } // namespace device |
| 81 | 81 |
| 82 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ | 82 #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ |
| OLD | NEW |