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

Unified Diff: device/sensors/sensor_manager_android.h

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch Created 3 years, 8 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 | « device/sensors/public/interfaces/light.mojom ('k') | device/sensors/sensor_manager_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/sensor_manager_android.h
diff --git a/device/sensors/sensor_manager_android.h b/device/sensors/sensor_manager_android.h
index 4d299efde3aa8827ce6b4ddcaf82a5855ca0b1ed..bf285ebfbee367fd749051c04901cf1cd0d78bc0 100644
--- a/device/sensors/sensor_manager_android.h
+++ b/device/sensors/sensor_manager_android.h
@@ -13,7 +13,6 @@
#include "base/threading/thread_checker.h"
#include "device/sensors/device_sensor_export.h"
#include "device/sensors/device_sensors_consts.h"
-#include "device/sensors/public/cpp/device_light_hardware_buffer.h"
#include "device/sensors/public/cpp/device_motion_hardware_buffer.h"
#include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
@@ -24,7 +23,7 @@ struct DefaultSingletonTraits;
namespace device {
-// Android implementation of Device {Motion|Orientation|Light} API.
+// Android implementation of Device {Motion|Orientation} API.
//
// Android's SensorManager has a push API, so when Got*() methods are called
// by the system the browser process puts the received data into a shared
@@ -38,9 +37,6 @@ class DEVICE_SENSOR_EXPORT SensorManagerAndroid {
static SensorManagerAndroid* GetInstance();
// Called from Java via JNI.
- void GotLight(JNIEnv*,
- const base::android::JavaParamRef<jobject>&,
- double value);
void GotOrientation(JNIEnv*,
const base::android::JavaParamRef<jobject>&,
double alpha,
@@ -69,9 +65,6 @@ class DEVICE_SENSOR_EXPORT SensorManagerAndroid {
double gamma);
// Shared memory related methods.
- void StartFetchingDeviceLightData(DeviceLightHardwareBuffer* buffer);
- void StopFetchingDeviceLightData();
-
void StartFetchingDeviceMotionData(DeviceMotionHardwareBuffer* buffer);
void StopFetchingDeviceMotionData();
@@ -121,8 +114,6 @@ class DEVICE_SENSOR_EXPORT SensorManagerAndroid {
RECEIVED_MOTION_DATA_MAX = 3,
};
- void SetLightBufferValue(double lux);
-
void CheckMotionBufferReadyToRead();
void SetMotionBufferReadyStatus(bool ready);
void ClearInternalMotionBuffers();
@@ -133,7 +124,6 @@ class DEVICE_SENSOR_EXPORT SensorManagerAndroid {
int received_motion_data_[RECEIVED_MOTION_DATA_MAX];
// Cached pointers to buffers, owned by DataFetcherSharedMemoryBase.
- DeviceLightHardwareBuffer* device_light_buffer_;
DeviceMotionHardwareBuffer* device_motion_buffer_;
DeviceOrientationHardwareBuffer* device_orientation_buffer_;
DeviceOrientationHardwareBuffer* device_orientation_absolute_buffer_;
@@ -142,7 +132,6 @@ class DEVICE_SENSOR_EXPORT SensorManagerAndroid {
bool orientation_buffer_initialized_;
bool orientation_absolute_buffer_initialized_;
- base::Lock light_buffer_lock_;
base::Lock motion_buffer_lock_;
base::Lock orientation_buffer_lock_;
base::Lock orientation_absolute_buffer_lock_;
« no previous file with comments | « device/sensors/public/interfaces/light.mojom ('k') | device/sensors/sensor_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698