Index: device/generic_sensor/android/java/src/org/chromium/device/sensors/SensorConfiguration.java |
diff --git a/device/generic_sensor/android/java/src/org/chromium/device/sensors/SensorConfiguration.java b/device/generic_sensor/android/java/src/org/chromium/device/sensors/SensorConfiguration.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9adab8590d0127d3d37a0f7d63f3a5af017fe90a |
--- /dev/null |
+++ b/device/generic_sensor/android/java/src/org/chromium/device/sensors/SensorConfiguration.java |
@@ -0,0 +1,30 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.device.sensors; |
+ |
+import org.chromium.base.annotations.CalledByNative; |
+import org.chromium.base.annotations.JNINamespace; |
+ |
+/** |
+ * Holds information about sensor configuration, wraps data that is provided by native side |
+ * class PlatformSensorConfigurationAndroid. |
+ */ |
+@JNINamespace("device") |
+final class SensorConfiguration { |
+ private final double mFrequency; |
+ |
+ private SensorConfiguration(double frequency) { |
+ mFrequency = frequency; |
+ } |
+ |
+ @CalledByNative |
+ private static SensorConfiguration create(double frequency) { |
+ return new SensorConfiguration(frequency); |
+ } |
+ |
+ public double getFrequency() { |
+ return mFrequency; |
+ } |
+} |