The //device/generic_sensor/ already provides almost all of the sensors needed to implement DeviceOrientation Event, DeviceOrientationAbsolute Event, and DeviceMotion Event (https://www.w3.org/TR/orientation-event/). So //content/renderer/device_sensors can be refactored to depend on //device/generic_sensor, and //device/sensors/ can be removed. Some steps are listed as following:
1. Add RELATIVE_ORIENTATION sensor type to //device/generic_sensor/
2. Refactor DeviceMotionEventPump and DeviceOrientationEventPump
Comment 1 by juncai@chromium.org
, May 11 2017