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

Side by Side Diff: services/device/generic_sensor/platform_sensor_android.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_ANDROID_H_ 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_ANDROID_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_ANDROID_H_ 6 #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_ANDROID_H_
7 7
8 #include "device/generic_sensor/platform_sensor.h"
9 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
10 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "services/device/generic_sensor/platform_sensor.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 class PlatformSensorAndroid : public PlatformSensor { 14 class PlatformSensorAndroid : public PlatformSensor {
15 public: 15 public:
16 // Register C++ methods exposed to Java using JNI. 16 // Register C++ methods exposed to Java using JNI.
17 static bool RegisterJNI(JNIEnv* env); 17 static bool RegisterJNI(JNIEnv* env);
18 18
19 PlatformSensorAndroid(mojom::SensorType type, 19 PlatformSensorAndroid(mojom::SensorType type,
20 mojo::ScopedSharedBufferMapping mapping, 20 mojo::ScopedSharedBufferMapping mapping,
(...skipping 24 matching lines...) Expand all
45 const PlatformSensorConfiguration& configuration) override; 45 const PlatformSensorConfiguration& configuration) override;
46 46
47 private: 47 private:
48 // Java object org.chromium.device.sensors.PlatformSensor 48 // Java object org.chromium.device.sensors.PlatformSensor
49 base::android::ScopedJavaGlobalRef<jobject> j_object_; 49 base::android::ScopedJavaGlobalRef<jobject> j_object_;
50 DISALLOW_COPY_AND_ASSIGN(PlatformSensorAndroid); 50 DISALLOW_COPY_AND_ASSIGN(PlatformSensorAndroid);
51 }; 51 };
52 52
53 } // namespace device 53 } // namespace device
54 54
55 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_ANDROID_H_ 55 #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698