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

Unified Diff: content/browser/device_sensors/sensor_manager_android.h

Issue 661413003: Android: add support for Device Orientation on devices where ROTATION_VECTOR is not availabl… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test when rotation vector is not available Created 6 years, 2 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 | content/browser/device_sensors/sensor_manager_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/sensor_manager_android.h
diff --git a/content/browser/device_sensors/sensor_manager_android.h b/content/browser/device_sensors/sensor_manager_android.h
index b8e90d86434fdd2e62205a35bb3c8e2c8f6633c8..714b8ec04165bdad26d3301a5d1137458229c788 100644
--- a/content/browser/device_sensors/sensor_manager_android.h
+++ b/content/browser/device_sensors/sensor_manager_android.h
@@ -86,6 +86,7 @@ class CONTENT_EXPORT SensorManagerAndroid {
void ClearInternalMotionBuffers();
void SetOrientationBufferReadyStatus(bool ready);
+ bool isUsingBackupSensorsForOrientation();
// The Java provider of sensors info.
base::android::ScopedJavaGlobalRef<jobject> device_sensors_;
@@ -102,6 +103,8 @@ class CONTENT_EXPORT SensorManagerAndroid {
base::Lock motion_buffer_lock_;
base::Lock orientation_buffer_lock_;
+ bool is_using_backup_sensors_for_orientation_;
+
DISALLOW_COPY_AND_ASSIGN(SensorManagerAndroid);
};
« no previous file with comments | « no previous file | content/browser/device_sensors/sensor_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698