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

Unified Diff: device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java

Issue 2847253002: [Device Service] Add RELATIVE_ORIENTATION sensor type to //device/generic_sensor (Closed)
Patch Set: fix typo 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java
diff --git a/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java b/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java
index 5b963afc9047fbecf1a06d508f4e54066f449f97..436acd6880c48759874765d9d2744d2d348db182 100644
--- a/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java
+++ b/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java
@@ -13,7 +13,6 @@ import android.os.HandlerThread;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
-
import org.chromium.device.mojom.SensorType;
import java.util.HashSet;
@@ -152,6 +151,8 @@ class PlatformSensorProvider {
return PlatformSensor.create(Sensor.TYPE_MAGNETIC_FIELD, 3, this);
case SensorType.ABSOLUTE_ORIENTATION:
return PlatformSensor.create(Sensor.TYPE_ROTATION_VECTOR, 4, this);
+ case SensorType.RELATIVE_ORIENTATION:
+ return PlatformSensor.create(Sensor.TYPE_GAME_ROTATION_VECTOR, 4, this);
default:
return null;
}
« no previous file with comments | « no previous file | device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698