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

Side by Side Diff: services/device/generic_sensor/platform_sensor_reader_win.h

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698