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

Side by Side Diff: device/generic_sensor/platform_sensor_provider_mac.h

Issue 2332903002: [sensors] [mac] Implement ambient light sensor for macOS (Closed)
Patch Set: More style fixes and build fixes Created 4 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_
7
8 #include "device/generic_sensor/platform_sensor_provider.h"
9
10 namespace base {
11 class Thread;
12 }
13
14 namespace device {
15
16 class SensorsPollingThreadMac;
17
18 class PlatformSensorProviderMac : public PlatformSensorProvider {
19 public:
20 PlatformSensorProviderMac();
21 ~PlatformSensorProviderMac() override;
22
23 static PlatformSensorProviderMac* GetInstance();
24
25 protected:
26 scoped_refptr<PlatformSensor> CreateSensorInternal(
27 mojom::SensorType type,
28 mojo::ScopedSharedBufferMapping mapping,
29 uint64_t buffer_size) override;
30
31 private:
32 std::unique_ptr<base::Thread> polling_thread_;
33 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderMac);
34 };
35
36 } // namespace device
37
38 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698