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

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

Issue 2434563005: [sensors] Add a browser test to sanity check ambient light sensor. (Closed)
Patch Set: Fix nits found by Reilly Created 4 years, 1 month 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_ANDROID_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_ANDROID_H_
7
8 #include "device/generic_sensor/platform_sensor_provider.h"
9
10 #include "base/android/scoped_java_ref.h"
11
12 namespace device {
13
14 class PlatformSensorProviderAndroid : public PlatformSensorProvider {
15 public:
16 PlatformSensorProviderAndroid();
17 ~PlatformSensorProviderAndroid() override;
18
19 static PlatformSensorProviderAndroid* GetInstance();
20
21 protected:
22 void CreateSensorInternal(mojom::SensorType type,
23 mojo::ScopedSharedBufferMapping mapping,
24 const CreateSensorCallback& callback) override;
25
26 private:
27 // Java object org.chromium.device.sensors.PlatformSensorProvider
28 base::android::ScopedJavaGlobalRef<jobject> j_object_;
29
30 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderAndroid);
31 };
32
33 } // namespace device
34
35 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_ANDROID_H_
OLDNEW
« no previous file with comments | « device/generic_sensor/platform_sensor_provider.cc ('k') | device/generic_sensor/platform_sensor_provider_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698