tree: 7a057f496fa0eba81a654a5e1e15768bc13eba0b [path history] [tgz]
  1. AbsoluteOrientationSensor.cpp
  2. AbsoluteOrientationSensor.h
  3. AbsoluteOrientationSensor.idl
  4. Accelerometer.cpp
  5. Accelerometer.h
  6. Accelerometer.idl
  7. AmbientLightSensor.cpp
  8. AmbientLightSensor.h
  9. AmbientLightSensor.idl
  10. BUILD.gn
  11. DEPS
  12. Gyroscope.cpp
  13. Gyroscope.h
  14. Gyroscope.idl
  15. Magnetometer.cpp
  16. Magnetometer.h
  17. Magnetometer.idl
  18. OrientationSensor.cpp
  19. OrientationSensor.h
  20. OrientationSensor.idl
  21. OWNERS
  22. README.md
  23. RelativeOrientationSensor.cpp
  24. RelativeOrientationSensor.h
  25. RelativeOrientationSensor.idl
  26. Sensor.cpp
  27. Sensor.h
  28. Sensor.idl
  29. SensorErrorEvent.cpp
  30. SensorErrorEvent.h
  31. SensorErrorEvent.idl
  32. SensorErrorEventInit.idl
  33. SensorOptions.idl
  34. SensorProviderProxy.cpp
  35. SensorProviderProxy.h
  36. SensorProxy.cpp
  37. SensorProxy.h
third_party/WebKit/Source/modules/sensor/README.md

Generic Sensor

third_party/WebKit/Source/modules/sensor implements the following concrete sensor intrefaces based on the [Generic Sensor API] (https://w3c.github.io/sensors):

  1. [Ambient Light Sensor] (https://w3c.github.io/ambient-light)
  2. [Accelerometer] (https://w3c.github.io/accelerometer)
  3. [Gyroscope] (https://w3c.github.io/gyroscope)
  4. [Magnetometer] (https://w3c.github.io/magnetometer)
  5. [Absolute Orientation Sensor] (https://w3c.github.io/orientation-sensor)

The platform-specific parts of the implementation are located in device/generic_sensor.

Testing

Sensors layout tests are located in LayoutTests/sensor.

Sensors browser tests are located in content/test/data/generic_sensor.

Design Documents

Please refer to the design documentation for more details.